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:
0e170c7
)
drivers/video/w100fb.c: avoid a couple of error-path NULL derefs
author
Andrew Morton
<
[email protected]
>
Mon, 28 Apr 2008 09:15:45 +0000
(
02:15
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 28 Apr 2008 15:58:41 +0000
(08:58 -0700)
Fix a couple of error-patch oopses identified by Marcio Buss in
http://bugzilla.kernel.org/show_bug.cgi?id=9567.
Cc: Marcio Buss <
[email protected]
>
Cc: Jeff Zhou <
[email protected]
>
Cc: "Antonino A. Daplas" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/w100fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/w100fb.c
b/drivers/video/w100fb.c
index 003c49a490eb9034f21bb8b8f49d8d91b0eddee6..30469bf906e54b51a6688918624fd030ab6f25cf 100644
(file)
--- a/
drivers/video/w100fb.c
+++ b/
drivers/video/w100fb.c
@@
-765,8
+765,10
@@
int __init w100fb_probe(struct platform_device *pdev)
printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id);
return 0;
out:
- fb_dealloc_cmap(&info->cmap);
- kfree(info->pseudo_palette);
+ if (info) {
+ fb_dealloc_cmap(&info->cmap);
+ kfree(info->pseudo_palette);
+ }
if (remapped_fbuf != NULL)
iounmap(remapped_fbuf);
if (remapped_regs != NULL)