summaryrefslogtreecommitdiffstats
path: root/include/linux/pci_ids.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2012-09-21 12:44:12 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-24 13:01:24 +0400
commitfe542396da73b7e2b0848618c7e95855c1b75689 (patch)
tree5ecc5110504cf3b2cd3cd3777d4e0295accae89e /include/linux/pci_ids.h
parentfe0c9610bb68dd0aad1017456f5e3c31264d70c2 (diff)
downloadblackbird-op-linux-fe542396da73b7e2b0848618c7e95855c1b75689.tar.gz
blackbird-op-linux-fe542396da73b7e2b0848618c7e95855c1b75689.zip
[SCSI] sd: Ensure we correctly disable devices with unknown protection type
We set the capacity to zero when we discovered a device formatted with an unknown DIF protection type. However, the read_capacity code would override the capacity and cause the device to be enabled regardless. Make sd_read_protection_type() return an error if the protection type is unknown. Also prevent duplicate printk lines when the device is being revalidated. Reported-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/linux/pci_ids.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud