android_kernel_samsung_msm8976/drivers/usb/gadget
Benedikt Spranger 5395353e0c usb-gadget-ether: prevent oops caused by error interrupt race
Fix a longstanding race in the Ethernet gadget driver, which can cause an
oops on device disconnect.  The fix is just to make the TX path check
whether its freelist is empty.  That check is otherwise not necessary,
since the queue is always stopped when that list empties (and restarted
when request completion puts an entry back on that freelist).

The race window starts when the network code decides to transmit a packet,
and ends when hard_start_xmit() grabs the freelist lock.  When disconnect()
is called inside that window, it shuts down the TX queue and breaks the
otherwise-solid assumption that packets are never sent through a TX queue
that's stopped.

Signed-off-by: Benedikt Spranger <bene@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:55:30 -07:00
..
amd5536udc.c USB: AMD5536: use pdev->revision 2007-10-12 14:55:25 -07:00
amd5536udc.h USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
at91_udc.c
at91_udc.h
config.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
dummy_hcd.c USB: fix location of statement label in dummy-hcd 2007-10-12 14:55:24 -07:00
epautoconf.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
ether.c usb-gadget-ether: prevent oops caused by error interrupt race 2007-10-12 14:55:30 -07:00
file_storage.c USB: less-restrictive command checking in g-file-storage 2007-10-12 14:55:20 -07:00
fsl_usb2_udc.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
fsl_usb2_udc.h
gadget_chips.h USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
gmidi.c USB: gadget: gmidi cleanups 2007-10-12 14:55:03 -07:00
goku_udc.c
goku_udc.h
inode.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
Kconfig USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
lh7a40x_udc.c
lh7a40x_udc.h
m66592-udc.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
m66592-udc.h USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
Makefile USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
ndis.h
net2280.c
net2280.h
omap_udc.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
omap_udc.h
pxa2xx_udc.c USB: px2xx_udc bugfix, missing check for gpio_pullup 2007-08-22 14:27:43 -07:00
pxa2xx_udc.h
rndis.c
rndis.h
s3c2410_udc.c
s3c2410_udc.h
serial.c USB: gadget: serial gadget cleanups 2007-10-12 14:55:03 -07:00
usbstring.c
zero.c USB: gadget: gadget zero cleanups 2007-10-12 14:55:04 -07:00