USB: uas: add full support for RESPONSE IU
authorOliver Neukum <oneukum@suse.com>
Tue, 19 Jan 2016 09:51:09 +0000 (10:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 05:00:33 +0000 (21:00 -0800)
commitaa742683bbea9f2faa28ec2f61745abf2ad86a9d
treee3f3d4b5f9b8c8b111f6effa4245e83784493512
parentf6281af9d62e128aa6efad29cf7265062af114f2
USB: uas: add full support for RESPONSE IU

Some devices send response IUs when you'd expect a sense IU.
As a response to a wrong LUN that is within spec.
We cannot get away without handling for response IUs.
This version fixes the issues Hans raised.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c