linux-uconsole/drivers/usb/chipidea
Dan Carpenter 56fbab4937 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:18:59 +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:18:59 +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 14:03:52 +01:00
debug.c
host.c usb: chipidea: host: fix port index underflow and UBSAN complains 2021-09-18 13:40:30 +02:00
host.h
Kconfig
Makefile
otg.c
otg.h
otg_fsm.c
otg_fsm.h
udc.c
udc.h
ulpi.c
usbmisc_imx.c