提交 e557990e 编写于 作者: M Martin K. Petersen 提交者: James Bottomley

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: NMartin K. Petersen <martin.petersen@oracle.com>
Cc: <stable@vger.kernel.org> # v3.17+
Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 e727c42b
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册