SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 Jul 2013 02:58:34 +0000 (22:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:04 +0000 (22:59 -0700)
commit0ac10bd036f0f3b8ce7ac2390446eab9531c72eb
tree7749630b0692160b2f0bdbfca8354a37bcc9e7f0
parent22e994efa7f9a786fc2c5e07e0b5e312f2db025e
SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set

commit 7562523e84ddc742fe1f9db8bd76b01acca89f6b upstream.

If a device has the skip_vpd_pages flag set we should simply fail the
scsi_get_vpd_page() call.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Stuart Foster <smf.linux@ntlworld.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi.c