projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b56f1c
)
eeepc-laptop: fix potential leak (led_init() failure)
author
Alan Jenkins
<alan-jenkins@tuffmail.co.uk>
Thu, 3 Dec 2009 07:44:58 +0000
(07:44 +0000)
committer
Len Brown
<len.brown@intel.com>
Wed, 9 Dec 2009 20:54:31 +0000
(15:54 -0500)
If we bail out because we can't create the led class device, we need to
ensure the led workqueue is cleaned up.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/eeepc-laptop.c
b/drivers/platform/x86/eeepc-laptop.c
index
ac45faf
..
8b686b5
100644
(file)
--- a/
drivers/platform/x86/eeepc-laptop.c
+++ b/
drivers/platform/x86/eeepc-laptop.c
@@
-1248,8
+1248,10
@@
static int eeepc_led_init(struct device *dev)
return -ENOMEM;
rv = led_classdev_register(dev, &tpd_led);
- if (rv)
+ if (rv) {
+ destroy_workqueue(led_workqueue);
return rv;
+ }
return 0;
}