Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f536692 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

USB: gadget: double free_irq() in at91udc_probe()



If request_irq() fails, udp_irq is freed twice.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 392ca68b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
		}