commit | b2e2c94b878be2500d4d42c1f52a2fa1fe7648b4 | [log] [tgz] |
---|---|---|
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | Fri Jul 03 14:02:29 2015 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jul 06 12:34:08 2015 -0500 |
tree | 5da31c96bcaee62996db2d22e6e2327d8be1321a | |
parent | 543aa4867d4a2dff5fc11e1b688197ee3bad7f89 [diff] |
usb: gadget: f_midi: fix error recovery path In case kstrdup() fails the resources to release are midi->in_port[] and midi. No cards have been registered, so no need to unregister any. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>