mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
392ca68b40
commit
7f536692af
|
@ -1754,7 +1754,6 @@ static int __init at91udc_probe(struct platform_device *pdev)
|
||||||
IRQF_DISABLED, driver_name, udc)) {
|
IRQF_DISABLED, driver_name, udc)) {
|
||||||
DBG("request vbus irq %d failed\n",
|
DBG("request vbus irq %d failed\n",
|
||||||
udc->board.vbus_pin);
|
udc->board.vbus_pin);
|
||||||
free_irq(udc->udp_irq, udc);
|
|
||||||
retval = -EBUSY;
|
retval = -EBUSY;
|
||||||
goto fail3;
|
goto fail3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue