mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ void sd_dif_config_host(struct scsi_disk *sdkp)
|
||||||
|
|
||||||
disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
|
disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
|
||||||
|
|
||||||
if (!sdkp)
|
if (!sdkp->ATO)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (type == SD_DIF_TYPE3_PROTECTION)
|
if (type == SD_DIF_TYPE3_PROTECTION)
|
||||||
|
|
Loading…
Reference in a new issue