summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-08-24 18:27:23 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 15:46:37 +0200
commit7f536692afd45eea349501beb2b76492a3524a28 (patch)
tree756b60a8f63190195f4e69c23d283ad743e425bb /drivers/usb
parentUSB: Clean up root hub string descriptors (diff)
downloadlinux-7f536692afd45eea349501beb2b76492a3524a28.tar.xz
linux-7f536692afd45eea349501beb2b76492a3524a28.zip
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.c1
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)
IRQF_DISABLED, driver_name, udc)) {
DBG("request vbus irq %d failed\n",
udc->board.vbus_pin);
- free_irq(udc->udp_irq, udc);
retval = -EBUSY;
goto fail3;
}