summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.modsign
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2013-07-30 21:18:15 +0200
committerFelipe Balbi <balbi@ti.com>2013-09-17 17:38:51 +0200
commit5f5610f69be3a925b1f79af27150bb7377bc9ad6 (patch)
tree8c1f09ec3d2928798a096fb8df9bb5cd3cd1683c /scripts/Makefile.modsign
parentusb: gadget: mv_u3d_core: fix violation of locking discipline in mv_u3d_ep_di... (diff)
downloadlinux-5f5610f69be3a925b1f79af27150bb7377bc9ad6.tar.xz
linux-5f5610f69be3a925b1f79af27150bb7377bc9ad6.zip
usb: gadget: fix a bug and a WARN_ON in dummy-hcd
This patch fixes a NULL pointer dereference and a WARN_ON in dummy-hcd. These things were the result of moving to the UDC core framework, and possibly of changes to that framework. Now unloading a gadget driver causes the UDC to be stopped after the gadget driver is unbound, not before. Therefore the "driver" argument to dummy_udc_stop() can be NULL, so we must not try to print the driver's name without checking first. Also, the UDC framework automatically unregisters the gadget when the UDC is deleted. Therefore a sysfs attribute file attached to the gadget must be removed before the UDC is deleted, not after. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: <stable@vger.kernel.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'scripts/Makefile.modsign')
0 files changed, 0 insertions, 0 deletions