Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e3bbb3f05339de438faf54124f25c92e6fe4ac2e
Commit:     e3bbb3f05339de438faf54124f25c92e6fe4ac2e
Parent:     eb0645a8b1f14da300f40bb9f424640cd1181fbf
Author:     Jesper Juhl <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 20 00:31:47 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 08:44:20 2007 -0700

    cr_backlight_probe() allocates too little storage for struct cr_panel
    
    The Coverity checker noticed that we allocate too little storage for
    "struct cr_panel *crp" in cr_backlight_probe().
    
    Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]>
    Cc: Thomas Hellstrom <[EMAIL PROTECTED]>
    Cc: Alan Hourihane <[EMAIL PROTECTED]>
    Cc: <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/video/backlight/cr_bllcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/backlight/cr_bllcd.c 
b/drivers/video/backlight/cr_bllcd.c
index e9bbc34..1b3f658 100644
--- a/drivers/video/backlight/cr_bllcd.c
+++ b/drivers/video/backlight/cr_bllcd.c
@@ -174,7 +174,7 @@ static int cr_backlight_probe(struct platform_device *pdev)
        struct cr_panel *crp;
        u8 dev_en;
 
-       crp = kzalloc(sizeof(crp), GFP_KERNEL);
+       crp = kzalloc(sizeof(*crp), GFP_KERNEL);
        if (crp == NULL)
                return -ENOMEM;
 
-
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