forked from luck/tmp_suning_uos_patched
663e7a7287
[ Upstream commit e6a21a14106d9718aa4f8e115b1e474888eeba44 ]
As the possible failure of the vzalloc(), e->encoder_buf might be NULL.
Therefore, it should be better to check it in order
to guarantee the success of the initialization.
If fails, we need to free not only 'e' but also 'e->name'.
Also, if the allocation for ctx fails, we need to free 'e->encoder_buf'
else.
Fixes:
|
||
---|---|---|
.. | ||
vicodec | ||
vidtv | ||
vimc | ||
vivid | ||
Kconfig | ||
Makefile | ||
vim2m.c |