linux_dsm_epyc7002/drivers/usb/dwc3
Lee Jones 7f5d6a4696 usb: dwc3: qcom: Improve error handling
dwc3_qcom_clk_init() is called with of_count_phandle_with_args() as an
argument.  If of_count_phandle_with_args() returns an error, the number
of clocks will be a negative value and will lead to undefined behaviour.

Ensure we check for an error before attempting to blindly use the value.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2019-06-18 11:58:29 +03:00
..
core.c usb: dwc3: Fix default lpm_nyet_threshold value 2019-05-03 09:13:49 +03:00
core.h usb: dwc3: Rename DWC3_DCTL_LPM_ERRATA 2019-05-03 09:13:49 +03:00
debug.h usb: dwc3: debug: Print GET_STATUS(device) tracepoint 2019-05-03 09:13:49 +03:00
debugfs.c usb: dwc3: debugfs: Print/set link state for peripheral mode 2018-11-26 09:06:31 +02:00
drd.c usb: dwc3: drd: Defer probe if extcon device is not found 2019-02-19 15:08:07 +01:00
dwc3-exynos.c usb: dwc3: exynos: Fix error handling of clk_prepare_enable 2019-01-28 15:31:11 +02:00
dwc3-haps.c usb: dwc3: haps: Workaround matching VID PID 2019-02-07 13:17:19 +02:00
dwc3-keystone.c usb: dwc3: keystone: Add support for ti,am654-dwc3 2019-01-28 12:51:29 +02:00
dwc3-meson-g12a.c usb: dwc3: meson-g12a: Add support for IRQ based OTG switching 2019-06-18 11:58:28 +03:00
dwc3-of-simple.c drm pull request for 5.2 2019-05-08 21:35:19 -07:00
dwc3-omap.c usb: dwc3: omap: don't miss events during suspend/resume 2018-02-12 10:53:18 +02:00
dwc3-pci.c usb: dwc3: pci: add support for Comet Lake PCH ID 2019-03-20 08:46:03 +02:00
dwc3-qcom.c usb: dwc3: qcom: Improve error handling 2019-06-18 11:58:29 +03:00
dwc3-st.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
ep0.c usb: dwc3: gadget: remove redundant variable maxpacket 2018-07-13 15:41:56 +02:00
gadget.c usb: dwc3: Rename DWC3_DCTL_LPM_ERRATA 2019-05-03 09:13:49 +03:00
gadget.h usb: dwc3: gadget: remove req->started flag 2019-01-28 12:53:15 +02:00
host.c usb: dwc3: Support option to disable USB2 LPM 2018-11-26 09:06:31 +02:00
io.h USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: dwc3: qcom: Add support for booting with ACPI 2019-06-18 11:58:29 +03:00
Makefile usb: dwc3: Add Amlogic G12A DWC3 glue 2019-05-03 09:13:47 +03:00
trace.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
trace.h usb: dwc3: trace: pass trace buffer size to decoding functions 2019-02-04 15:43:38 +02:00
ulpi.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00