diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-02-18 08:59:26 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-02-23 08:51:37 +0200 |
commit | 7b0a271d5cadf5fbb5a9c7cb868776af2a2c248c (patch) | |
tree | 1fb5ea768329098b575f077ff0b450a3e87fb5c0 /kernel/cred.c | |
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>
Diffstat (limited to 'kernel/cred.c')
0 files changed, 0 insertions, 0 deletions