diff --git a/debian/changelog b/debian/changelog index bbc214d08..a7a98c253 100644 --- a/debian/changelog +++ b/debian/changelog @@ -82,6 +82,8 @@ linux (3.10.5-1) UNRELEASED; urgency=low * [rt] genpatch.py: Fix parsing of upstream patches with no header * aufs: Update to aufs3.10-20130805 * [rt] md: Disable BCACHE, as it fails to build + * SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is + set (Closes: #719002) -- Ben Hutchings Tue, 30 Jul 2013 18:09:20 +0200 diff --git a/debian/patches/bugfix/all/SCSI-Don-t-attempt-to-send-extended-INQUIRY-command-.patch b/debian/patches/bugfix/all/SCSI-Don-t-attempt-to-send-extended-INQUIRY-command-.patch new file mode 100644 index 000000000..54a3ed1f8 --- /dev/null +++ b/debian/patches/bugfix/all/SCSI-Don-t-attempt-to-send-extended-INQUIRY-command-.patch @@ -0,0 +1,33 @@ +From: "Martin K. Petersen" +Date: Tue, 30 Jul 2013 22:58:34 -0400 +Subject: [SCSI] Don't attempt to send extended INQUIRY command if + skip_vpd_pages is set +Origin: https://git.kernel.org/cgit/linux/kernel/git/jejb/scsi.git/commit?id=7562523e84ddc742fe1f9db8bd76b01acca89f6b +Bug-Debian: http://bugs.debian.org/719002 + +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 +Acked-by: Alan Stern +Tested-by: Stuart Foster +Cc: stable@vger.kernel.org +Signed-off-by: James Bottomley +--- + drivers/scsi/scsi.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c +index 3b1ea34..eaa808e 100644 +--- a/drivers/scsi/scsi.c ++++ b/drivers/scsi/scsi.c +@@ -1031,6 +1031,9 @@ int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, + { + int i, result; + ++ if (sdev->skip_vpd_pages) ++ goto fail; ++ + /* Ask for all the pages supported by this device */ + result = scsi_vpd_inquiry(sdev, buf, 0, buf_len); + if (result) diff --git a/debian/patches/series b/debian/patches/series index 146855d81..5cd2362e2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -113,3 +113,4 @@ bugfix/m68k/ethernat-kconfig.patch bugfix/all/nl80211-fix-another-nl80211_fam-attrbuf-race.patch bugfix/all/ext4-fix-retry-handling-in-ext4_ext_truncate.patch bugfix/all/atl1c-Fix-misuse-of-netdev_alloc_skb-in-refilling-rx.patch +bugfix/all/SCSI-Don-t-attempt-to-send-extended-INQUIRY-command-.patch