diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-08-24 12:27:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:37 -0400 |
commit | 7f536692afd45eea349501beb2b76492a3524a28 (patch) | |
tree | 756b60a8f63190195f4e69c23d283ad743e425bb /drivers/usb | |
parent | 392ca68b401e0797115a08836642faad5778fdb2 (diff) |
USB: gadget: double free_irq() in at91udc_probe()
If request_irq() fails, udp_irq is freed twice.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/at91_udc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 72bae8f39d81..66450a1abc22 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c | |||
@@ -1754,7 +1754,6 @@ static int __init at91udc_probe(struct platform_device *pdev) | |||
1754 | IRQF_DISABLED, driver_name, udc)) { | 1754 | IRQF_DISABLED, driver_name, udc)) { |
1755 | DBG("request vbus irq %d failed\n", | 1755 | DBG("request vbus irq %d failed\n", |
1756 | udc->board.vbus_pin); | 1756 | udc->board.vbus_pin); |
1757 | free_irq(udc->udp_irq, udc); | ||
1758 | retval = -EBUSY; | 1757 | retval = -EBUSY; |
1759 | goto fail3; | 1758 | goto fail3; |
1760 | } | 1759 | } |