Message ID | 45fec3da-1679-5bfe-5d74-219ca3fb28e7@omp.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Stop calling request_irq(), etc. with invalid IRQs in the USB drivers | expand |
Index: usb/drivers/usb/dwc3/dwc3-qcom.c =================================================================== --- usb.orig/drivers/usb/dwc3/dwc3-qcom.c +++ usb/drivers/usb/dwc3/dwc3-qcom.c @@ -614,6 +614,10 @@ static int dwc3_qcom_acpi_register_core( qcom->acpi_pdata->dwc3_core_base_size; irq = platform_get_irq(pdev_irq, 0); + if (irq < 0) { + ret = irq; + goto out; + } child_res[1].flags = IORESOURCE_IRQ; child_res[1].start = child_res[1].end = irq;