Commit:     192b775cc811b0e9e0d174ffdd5a814794392482
Parent:     62d0cfcb27cf755cebdc93ca95dabc83608007cd
Author:     Maxime Austruy <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 29 00:59:51 2007 +0000
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Wed Feb 7 15:23:53 2007 -0500

    [PATCH] zd1211rw: fix potential leak in usb_init
    usb_init should call destroy_workqueue when usb_register fails.
    Signed-off-by: Maxime Austruy <[EMAIL PROTECTED]>
    Signed-off-by: Ulrich Kunitz <[EMAIL PROTECTED]>
    Signed-off-by: Daniel Drake <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 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 
index 605e96e..2468ad6 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)
        r = usb_register(&driver);
        if (r) {
+               destroy_workqueue(zd_workqueue);
                printk(KERN_ERR "%s usb_register() failed. Error number %d\n",
             , r);
                return r;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to