forked from luck/tmp_suning_uos_patched
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:
parent
e727c42bd5
commit
e557990e35
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user