linux/drivers/usb/wusbcore
Thomas Pugliese 2a6da97ff5 usb: wusbcore: fix potential double list_del on urb dequeue
This patch locks rpipe->seg_lock around the entire transfer segment
cleanup loop in wa_urb_dequeue instead of just one case of the switch
statement.  This fixes a race between __wa_xfer_delayed_run and
wa_urb_dequeue where a transfer segment in the WA_SEG_DELAYED state
could be removed from the rpipe seg_list twice leading to memory
corruption.  It also switches the spin_lock call to use the non-irqsave
version since the xfer->lock is already held and irqs already disabled.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-07 12:39:39 -08:00
..
cbaf.c USB: wusbcore: fix up minor coding style issues in cbaf.c 2014-01-07 16:18:42 -08:00
crypto.c USB: wusbcore: correct spelling mistakes in comments and error string 2014-01-07 16:17:41 -08:00
dev-sysfs.c uwb: use dev_dbg() for debug messages 2008-12-22 18:22:50 +00:00
devconnect.c usb: wusbcore: fix compile warnings 2014-02-28 20:23:03 -08:00
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
mmc.c USB: wusbcore: fix up line break coding style issues in mmc.c 2014-01-07 16:19:31 -08:00
pal.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
reservation.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
rh.c wusbcore: fix root hub hub_status_data to only return > 0 if status has actually changed 2013-08-12 13:13:32 -07:00
security.c USB: wusbcore: fix up line break coding style issues in security.c 2014-01-07 16:19:30 -08:00
wa-hc.c usb: wusbcore: add a quirk for Alereon HWA device isoc behavior 2013-10-29 16:44:49 -07:00
wa-hc.h USB: wusbcore: fix up line break coding style issues in wa-hc.h 2014-01-07 16:19:30 -08:00
wa-nep.c USB: wusbcore: fix up coding style issues in wa-nep.c 2014-01-07 16:19:31 -08:00
wa-rpipe.c usb: wusbcore: adjust iterator correctly when searching for ep comp descriptor 2014-02-28 16:14:48 -08:00
wa-xfer.c usb: wusbcore: fix potential double list_del on urb dequeue 2014-03-07 12:39:39 -08:00
wusbhc.c USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h 2014-01-07 16:19:31 -08:00
wusbhc.h USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h 2014-01-07 16:19:31 -08:00