diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-02-18 10:59:26 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-02-23 09:51:37 +0300 |
commit | 7b0a271d5cadf5fbb5a9c7cb868776af2a2c248c (patch) | |
tree | 1fb5ea768329098b575f077ff0b450a3e87fb5c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 31b994a4986dcdd664c597afcef2c0918763019a (diff) | |
download | linux-7b0a271d5cadf5fbb5a9c7cb868776af2a2c248c.tar.xz |
usb: gadget: gadgetfs: unregister gadget only if it got successfully registered
Gadgetfs driver called usb_gadget_unregister_driver unconditionally, even
if it didn't register it earlier due to other failures. This patch fixes
this.
Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions