Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f803e26b authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Badhri Jagan Sridharan
Browse files

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.

BACKPORT FROM MAINLINE KERNEL

Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Change-Id: Idf14ca5aded888fe7c56d8b06763b009800827f5
parent 61ef7b1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment