usb: gadget: f_midi: check kstrdup() return value
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 16 Oct 2014 11:33:26 +0000 (13:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Nov 2014 19:36:05 +0000 (13:36 -0600)
commitd23b4c3ee2d5cbdeaec9f8e7d8a9bdcc73836fb9
treee12ed1da81a3977cd865ab428baad52075a83089
parent6e58ed578e2c65442b7a02deecc96e482c701654
usb: gadget: f_midi: check kstrdup() return value

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

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_midi.c