linux-stable/drivers/usb/chipidea
Dan Carpenter a815c169c8 usb: chipidea: ci_hdrc_imx: fix potential error pointer dereference in probe
commit d4d2e5329a upstream.

If the first call to devm_usb_get_phy_by_phandle(dev, "fsl,usbphy", 0)
fails with something other than -ENODEV then it leads to an error
pointer dereference.  For those errors we should just jump directly to
the error handling.

Fixes: 8253a34bfa ("usb: chipidea: ci_hdrc_imx: Also search for 'phys' phandle")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211117074923.GF5237@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-01 09:04:40 +01:00
..
bits.h
ci.h
ci_hdrc_imx.c usb: chipidea: ci_hdrc_imx: fix potential error pointer dereference in probe 2021-12-01 09:04:40 +01:00
ci_hdrc_imx.h
ci_hdrc_msm.c
ci_hdrc_pci.c
ci_hdrc_tegra.c
ci_hdrc_usb2.c
core.c USB: chipidea: fix interrupt deadlock 2021-11-18 19:16:08 +01:00
debug.c
host.c usb: chipidea: host: fix port index underflow and UBSAN complains 2021-08-21 13:15:25 +08:00
host.h
Kconfig
Makefile
otg.c usb: chipidea: otg: Fix formatting and missing documentation issues 2021-05-27 09:43:44 +02:00
otg.h
otg_fsm.c
otg_fsm.h
trace.c
trace.h
udc.c Merge 5.13-rc4 into usb-next 2021-05-31 09:50:26 +02:00
udc.h
ulpi.c
usbmisc_imx.c usb: chipidea: imx: Fix Battery Charger 1.2 CDP detection 2021-06-16 09:04:22 +08:00