[PATCH AUTOSEL 4.14 35/69] USB: omap_udc: fix crashes on probe error and module removal

2018-12-05 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit 99f700366fcea1aa2fa3c49c99f371670c3c62f8 ] We currently crash if usb_add_gadget_udc_release() fails, since the udc->done is not initialized until in the remove function. Furthermore, on module removal the udc data is accessed although the release function

[PATCH AUTOSEL 4.14 35/69] USB: omap_udc: fix crashes on probe error and module removal

2018-12-05 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit 99f700366fcea1aa2fa3c49c99f371670c3c62f8 ] We currently crash if usb_add_gadget_udc_release() fails, since the udc->done is not initialized until in the remove function. Furthermore, on module removal the udc data is accessed although the release function