Commit e557990e authored by Martin K. Petersen's avatar Martin K. Petersen Committed by James Bottomley

sd: Fix missing ATO tag check

3aec2f41 introduced a merge error where we would end up check for
sdkp instead of sdkp->ATO. Fix this so we register app tag capability
correctly.
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Cc: <stable@vger.kernel.org> # v3.17+
Reviewed-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent e727c42b
......@@ -77,7 +77,7 @@ void sd_dif_config_host(struct scsi_disk *sdkp)
disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
if (!sdkp)
if (!sdkp->ATO)
return;
if (type == SD_DIF_TYPE3_PROTECTION)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment