]> git.neil.brown.name Git - history.git/commit
[PATCH] usb-storage: catch bad commands
authorMatthew Dharm <mdharm-usb@one-eyed-alien.net>
Mon, 15 Jul 2002 10:19:17 +0000 (03:19 -0700)
committerVojtech Pavlik <vojtech@suse.cz>
Mon, 15 Jul 2002 10:19:17 +0000 (03:19 -0700)
commit6fa91667b6f5555c7ad5f065d72cb28e5ee9df4e
tree75a30e043b2095c103590b656814cda81065ee90
parent793fb491657f2a4c82d96a92c3b539f3c131b3bf
[PATCH] usb-storage: catch bad commands

The purpose of this patch is to trap all commands which have a bogus
request_bufflen.  Much logic is devoted to calculating the proper length of
the transfer, but according to discussions I've had on linux-scsi, this is
really a bug in whatever is originating the bad command.

Hopefully, after people use this patch for a while, we'll eliminate all the
offending sources and can remove quite a bit of logic from the driver.
drivers/usb/storage/transport.c