Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)