Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=20ec811eddb362f821c6fd57e5449f3ddb80b466
Commit:     20ec811eddb362f821c6fd57e5449f3ddb80b466
Parent:     aaa40cb8b7056b597fa77c9f61a1b271c0e341cf
Author:     Amit Choudhary <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 30 17:34:14 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 15:45:20 2007 -0300

    V4L/DVB (5489): Codec.c: check kmalloc() return value.
    
    Signed-off-by: Amit Choudhary <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/videocodec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/videocodec.c b/drivers/media/video/videocodec.c
index 290e641..f2bbd7a 100644
--- 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   
 ");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to