USB: fix concurrent buffer access in the hub driver
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 5 Feb 2007 14:56:15 +0000 (09:56 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:19 +0000 (15:32 -0800)
commitdb90e7a15cb4a160610b4e58576f25539ca216e7
tree10e0a54e3e20a42a8dd4b20448705f0ebad1dd94
parentaf59cf404fc7ad6cc642de9e78252fb264917611
USB: fix concurrent buffer access in the hub driver

This patch (as849) fixes a bug in the USB hub driver.  A single
pre-allocated buffer is used for all port status reads, but nothing
guarantees exclusive use of the buffer.  A mutex is added to provide
this guarantee.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c