Searched hist:"374 a1020" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | mv_u3d_core.c | 374a1020 Fri Mar 31 16:07:18 CDT 2017 Alexey Khoroshilov <khoroshilov@ispras.ru> usb: gadget: mv_u3d: fix error handling in mv_u3d_probe()
There are several inconsistencies in the error handling code. 1. If clk_get() fails, it goes to clk_put(). 2. If pdata->phy_init() fails, it does not disable u3d->clk. 3. In case of failure after stopping u3d, it does pdata->phy_deinit() and clk_disable(u3d->clk) twice. 4. It ignores failures in clk_enable().
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> 374a1020 Fri Mar 31 16:07:18 CDT 2017 Alexey Khoroshilov <khoroshilov@ispras.ru> usb: gadget: mv_u3d: fix error handling in mv_u3d_probe() There are several inconsistencies in the error handling code. 1. If clk_get() fails, it goes to clk_put(). 2. If pdata->phy_init() fails, it does not disable u3d->clk. 3. In case of failure after stopping u3d, it does pdata->phy_deinit() and clk_disable(u3d->clk) twice. 4. It ignores failures in clk_enable(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|