usbgadget fix some crashes

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 27 02:12:41 PDT 2017


The following fixes some crashes I stumbled upon when trying to use
the usbgadget autostart feature.

Sascha

----------------------------------------------------------------
Sascha Hauer (4):
      usbgadget: autostart: Handle errors in file list gracefully
      usbgadget: do not register when no functions present
      usbgadget: only set to peripheral mode when error checking is done
      usbgadget: unregister when usb_composite_probe() fails

 drivers/usb/gadget/autostart.c | 18 +++++++++++++++---
 drivers/usb/gadget/multi.c     | 10 +++++++++-
 2 files changed, 24 insertions(+), 4 deletions(-)



More information about the barebox mailing list