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

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

usb: gadget: f_midi: check kstrdup() return value



kstrdup() might fail, so check its return value and react appropriately.

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: Ife54cb138b51fd84ac2b62aa340747789894a320
parent 4158b96a
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