usb: misc: eud: Add IRQ check for platform_get_irq()
authorChen Ni <nichen@iscas.ac.cn>
Thu, 2 Nov 2023 07:51:13 +0000 (07:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Nov 2023 12:02:53 +0000 (12:02 +0000)
commit6437760accfbaf1160342adeaea1a73dcd278799
treefb8a5e23371d6536bb19cde0efc334c35ed08915
parentd990e227741692079872a8336d961ef4ab9e8aaf
usb: misc: eud: Add IRQ check for platform_get_irq()

The function eud_probe() should check the return value of
platform_get_irq() for errors so as to not pass a negative value to
the devm_request_threaded_irq().

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20231102075113.1043358-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/qcom_eud.c