projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaa40cb
)
V4L/DVB (5489): Codec.c: check kmalloc() return value.
author
Amit Choudhary
<amit2030@gmail.com>
Fri, 30 Mar 2007 20:34:14 +0000
(17:34 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Fri, 27 Apr 2007 18:45:20 +0000
(15:45 -0300)
Signed-off-by: Amit Choudhary <amit2030@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videocodec.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/videocodec.c
b/drivers/media/video/videocodec.c
index 290e641356502fd8c87a95bc2649831d669c4b76..f2bbd7a4d562850ffb306c584b61a10b9b2ab330 100644
(file)
--- a/
drivers/media/video/videocodec.c
+++ b/
drivers/media/video/videocodec.c
@@
-348,6
+348,9
@@
videocodec_build_table (void)
kfree(videocodec_buf);
videocodec_buf = kmalloc(size, GFP_KERNEL);
+ if (!videocodec_buf)
+ return 0;
+
i = 0;
i += scnprintf(videocodec_buf + i, size - 1,
"<S>lave or attached <M>aster name type flags magic ");