summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2018-11-25 01:17:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-17 11:38:33 +0300
commita2aa761a5cd6a91f5886b83bc441d661c6a8e0b6 (patch)
tree76383604a6fcfc5572ae39d20154243b479a1732 /drivers/clk
parent2c37b2f49ba7225785a066fa5a477faf7d3fc530 (diff)
downloadlinux-a2aa761a5cd6a91f5886b83bc441d661c6a8e0b6.tar.xz
USB: omap_udc: fix crashes on probe error and module removal
[ 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 is already triggered by usb_del_gadget_udc() early in the function. Fix by rewriting the release and remove functions, basically moving all the cleanup into the release function, and doing the completion only in the module removal case. The patch fixes omap_udc module probe with a failing gadged, and also allows the removal of omap_udc. Tested by running "modprobe omap_udc; modprobe -r omap_udc" in a loop. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions