提交 20ec811e 编写于 作者: A Amit Choudhary 提交者: Mauro Carvalho Chehab

V4L/DVB (5489): Codec.c: check kmalloc() return value.

Signed-off-by: NAmit Choudhary <amit2030@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 aaa40cb8
...@@ -348,6 +348,9 @@ videocodec_build_table (void) ...@@ -348,6 +348,9 @@ videocodec_build_table (void)
kfree(videocodec_buf); kfree(videocodec_buf);
videocodec_buf = kmalloc(size, GFP_KERNEL); videocodec_buf = kmalloc(size, GFP_KERNEL);
if (!videocodec_buf)
return 0;
i = 0; i = 0;
i += scnprintf(videocodec_buf + i, size - 1, i += scnprintf(videocodec_buf + i, size - 1,
"<S>lave or attached <M>aster name type flags magic "); "<S>lave or attached <M>aster name type flags magic ");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册