diff options
author | Maxime Austruy <maxime@tralhalla.org> | 2007-01-28 19:59:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-07 15:23:53 -0500 |
commit | 192b775cc811b0e9e0d174ffdd5a814794392482 (patch) | |
tree | 2cceaabfda1236abd6a607e33c464f3b4704ba9f /drivers/net/wireless/zd1211rw | |
parent | 62d0cfcb27cf755cebdc93ca95dabc83608007cd (diff) |
[PATCH] zd1211rw: fix potential leak in usb_init
usb_init should call destroy_workqueue when usb_register fails.
Signed-off-by: Maxime Austruy <maxime@tralhalla.org>
Signed-off-by: Ulrich Kunitz <kune@deine-taler.de>
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c index 605e96e74057..2468ad662d3d 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zd1211rw/zd_usb.c | |||
@@ -1128,6 +1128,7 @@ static int __init usb_init(void) | |||
1128 | 1128 | ||
1129 | r = usb_register(&driver); | 1129 | r = usb_register(&driver); |
1130 | if (r) { | 1130 | if (r) { |
1131 | destroy_workqueue(zd_workqueue); | ||
1131 | printk(KERN_ERR "%s usb_register() failed. Error number %d\n", | 1132 | printk(KERN_ERR "%s usb_register() failed. Error number %d\n", |
1132 | driver.name, r); | 1133 | driver.name, r); |
1133 | return r; | 1134 | return r; |