commit | 7b0a271d5cadf5fbb5a9c7cb868776af2a2c248c | [log] [tgz] |
---|---|---|
author | Marek Szyprowski <m.szyprowski@samsung.com> | Thu Feb 18 08:59:26 2016 +0100 |
committer | Felipe Balbi <balbi@kernel.org> | Tue Feb 23 08:51:37 2016 +0200 |
tree | 1fb5ea768329098b575f077ff0b450a3e87fb5c0 | |
parent | 31b994a4986dcdd664c597afcef2c0918763019a [diff] |
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>