diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-07-20 00:31:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-20 08:44:20 -0700 |
commit | e3bbb3f05339de438faf54124f25c92e6fe4ac2e (patch) | |
tree | ac71f22e810909df9f069c9d5638ed102da0565d /drivers/video | |
parent | eb0645a8b1f14da300f40bb9f424640cd1181fbf (diff) | |
download | op-kernel-dev-e3bbb3f05339de438faf54124f25c92e6fe4ac2e.zip op-kernel-dev-e3bbb3f05339de438faf54124f25c92e6fe4ac2e.tar.gz |
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 <jesper.juhl@gmail.com>
Cc: Thomas Hellstrom <thomas@tungstengraphics.com>
Cc: Alan Hourihane <alanh@tungstengraphics.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | 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; |