USB: g_file_storage: Set sense info Valid bit only when needed
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 26 Sep 2006 18:51:48 +0000 (14:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Sep 2006 22:36:47 +0000 (15:36 -0700)
commit6174d0fd35f486f59b743630bdf088a9f9792d4d
treedff7959fbb7d36b96301a85c5e651912c6cf02b7
parente0318ebff4d96131bb3524308b845f642e64df81
USB: g_file_storage: Set sense info Valid bit only when needed

Strictly speaking, the Valid bit in SCSI sense data is supposed to
be set only when the Information field contains a valid number.  This
patch (as793) turns off the Valid bit when the Information field
hasn't been set.

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