usbgadget: autostart: Handle errors in file list gracefully
file_list_parse() can fail and returns an error pointer. Print
an error message when it fails and also set to NULL again so
that usb_multi_register() does not stumble upon the error pointer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 15af9fc commit bf03086f1aa66abd50d440db7895dfd535095e0c
@Sascha Hauer Sascha Hauer authored on 27 Sep 2017
Showing 1 changed file
View
drivers/usb/gadget/autostart.c