projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb0645a
)
cr_backlight_probe() allocates too little storage for struct cr_panel
author
Jesper Juhl
<
[email protected]
>
Fri, 20 Jul 2007 07:31:47 +0000
(
00:31
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 Jul 2007 15:44:20 +0000
(08:44 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/cr_bllcd.c
b/drivers/video/backlight/cr_bllcd.c
index e9bbc3455c94d5ff8c02b7f05cdbd24df46f22be..1b3f6586bc9f433295ccee5bf5c32d5868e6d461 100644
(file)
--- 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;