mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
1fd6eb1264
Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.
Moreover, use kfree() in the later error handling in order to avoid
memory leak.
Fixes:
|
||
---|---|---|
.. | ||
vicodec | ||
vidtv | ||
vimc | ||
visl | ||
vivid | ||
Kconfig | ||
Makefile | ||
vim2m.c |