[PATCH] PATCH: usb-storage: allocate separate sense buffer
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 24 Oct 2005 02:40:22 +0000 (19:40 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 23:47:50 +0000 (16:47 -0700)
commitbbafa4668f37f5093a3ae2a8b0cbe327e24e12da
treee679db87309810e8da8092ffcb3df5a9dd7323e0
parentb876aef7f890d8c59a45b78858a36cf60fddf522
[PATCH] PATCH: usb-storage: allocate separate sense buffer

This patch is from Alan Stern (as560).  It has been rediffed against a
current tree.

This patch allocates a separate buffer for usb-storage to use when
auto-sensing.  Up to now we have been using the sense buffer embedded in a
scsi_cmnd struct, which is dangerous on hosts that (a) don't do
cache-coherent DMA or (b) have DMA alignment restrictions.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/transport.c
drivers/usb/storage/usb.c
drivers/usb/storage/usb.h