diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-30 17:34:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-30 17:34:14 -0300 |
commit | e45c87c4fd0b12b36a999c7ff621cd46f93b041d (patch) | |
tree | fe37ee445d5307710d0024c033a1e27b0190871b | |
parent | 5e29e28718a80e08f3c6c920d162964c0d377f93 (diff) | |
download | mediapointer-dvb-s2-e45c87c4fd0b12b36a999c7ff621cd46f93b041d.tar.gz mediapointer-dvb-s2-e45c87c4fd0b12b36a999c7ff621cd46f93b041d.tar.bz2 |
Codec.c: check kmalloc() return value.
From: Amit Choudhary <amit2030@gmail.com>
Signed-off-by: Amit Choudhary <amit2030@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/videocodec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/videocodec.c b/linux/drivers/media/video/videocodec.c index 290e64135..f2bbd7a4d 100644 --- a/linux/drivers/media/video/videocodec.c +++ b/linux/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 "); |