usb: gadget: f_midi: fix error recovery path
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Fri, 3 Jul 2015 12:02:29 +0000 (14:02 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Jul 2015 17:34:08 +0000 (12:34 -0500)
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>
drivers/usb/gadget/function/f_midi.c

Simple merge