Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sd: Fix missing ATO tag check

3aec2f41a8bae 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>

authored by

Martin K. Petersen and committed by
James Bottomley
e557990e e727c42b

+1 -1
+1 -1
drivers/scsi/sd_dif.c
··· 77 77 78 78 disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE; 79 79 80 - if (!sdkp) 80 + if (!sdkp->ATO) 81 81 return; 82 82 83 83 if (type == SD_DIF_TYPE3_PROTECTION)