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:
98365f5
)
[PATCH] imsttfb: Fix resource leak
author
Antonino A. Daplas
<adaplas@gmail.com>
Sat, 11 Mar 2006 11:27:24 +0000
(
03:27
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 11 Mar 2006 17:19:35 +0000
(09:19 -0800)
The struct info and device resource may not be released in the driver's error
path. Fix.
Coverity Bug 671
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/imsttfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/imsttfb.c
b/drivers/video/imsttfb.c
index ad416ae475963650a782e8c33b7f0e82a79cc298..7db42542eb19894be08530edb36940647ac62e6d 100644
(file)
--- a/
drivers/video/imsttfb.c
+++ b/
drivers/video/imsttfb.c
@@
-1510,6
+1510,8
@@
imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
default:
printk(KERN_INFO "imsttfb: Device 0x%x unknown, "
"contact maintainer.\n", pdev->device);
+ release_mem_region(addr, size);
+ framebuffer_release(info);
return -ENODEV;
}