diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-04-27 20:04:23 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-20 08:11:55 +0200 |
| commit | 6dfdd767cffb4f3437cea6f300bc11e1be104fe9 (patch) | |
| tree | 4db4c6bb23cb6fc0a9810e20da44e598787209e6 /kernel/locking/mutex-debug.c | |
| parent | 84cd70984ed2e3a94dfc4325d9237b90ac4dae3a (diff) | |
usb: gadget: net2272: Fix a memory leak in an error handling path in 'net2272_plat_probe()'
commit ccaef7e6e354fb65758eaddd3eae8065a8b3e295 upstream.
'dev' is allocated in 'net2272_probe_init()'. It must be freed in the error
handling path, as already done in the remove function (i.e.
'net2272_plat_remove()')
Fixes: 90fccb529d24 ("usb: gadget: Gadget directory cleanup - group UDC drivers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions
