diff options
author | 2017-04-01 00:07:18 +0300 | |
---|---|---|
committer | 2017-04-11 10:58:27 +0300 | |
commit | 374a1020d21b238d566e523a3bfd8fd9ee628c6b (patch) | |
tree | bdf366638407ff79831b73dca7c6fe8eb733ee16 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: gadget: udc: atmel: Check fifo configuration values against device tree (diff) | |
download | linux-dev-374a1020d21b238d566e523a3bfd8fd9ee628c6b.tar.xz linux-dev-374a1020d21b238d566e523a3bfd8fd9ee628c6b.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions