sd: Fix missing ATO tag check

3aec2f41a8 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: Martin K. Petersen <martin.petersen@oracle.com>
Cc: <stable@vger.kernel.org> # v3.17+
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
Martin K. Petersen 2015-04-14 17:11:03 -04:00 committed by James Bottomley
parent e727c42bd5
commit e557990e35
1 changed files with 1 additions and 1 deletions

View File

@ -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)