]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 9 Mar 2007 18:50:19 +0000 (10:50 -0800)
commit824535fec2e5b8c8333e6b225f964da311eab481
treeb2280afe6ff3e4dcd7f47a1b9af0cbb7a696d07a
parente16b67f9a0ac6d9f89f680b7f3b439abfb1dac5e
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