]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: fix USB boot crash, ecm_do_notify(), list_add corruption. prev->next should...
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 26 Jul 2008 15:06:24 +0000 (08:06 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Aug 2008 00:32:47 +0000 (17:32 -0700)
commitc728df70ab0dd59b8ccdc3c611ea88925e6697db
treeb9b56a813b061d14ac38cfb94e998d7437c5eb45
parent88d987d6db2a14b191f4eb21cc623dae31e28e9d
USB: fix USB boot crash, ecm_do_notify(), list_add corruption. prev->next should be next (ffff88003b8f82f8)

This fixes a BUG() turned up by Ingo via randconfig testing, where
CONFIG_LIST_DEBUG turned up list corruption.  The corruption was
caused by the dummy_hcd (single-machine test harness for gadget and
HCD code) trashing the request queue when driven by the new CDC
composite gadget an I/O pattern that was previously uncommon.
Fix suggested by Alan Stern.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c