]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: exynos: Fix error handling of clk_prepare_enable
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 21 Jan 2019 21:23:50 +0000 (00:23 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 28 Jan 2019 13:31:11 +0000 (15:31 +0200)
commit512e6fb589bc18f9321457632e89b95017447db9
tree3468f456af21d3a910c534acc4e31c149ea97384
parentf2105d42597f4d10e431b195d69e96dccaf9b012
usb: dwc3: exynos: Fix error handling of clk_prepare_enable

If clk_prepare_enable() fails in dwc3_exynos_probe() or in
dwc3_exynos_resume(), exynos->clks[0] is left undisabled
because of usage preincrement in while condition.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 9f2168367a0a ("usb: dwc3: exynos: Rework clock handling and prepare for new variants")
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-exynos.c