From: Martin K. Petersen Date: Tue, 14 Apr 2015 21:11:03 +0000 (-0400) Subject: sd: Fix missing ATO tag check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e557990e358934fb168d30371c9c0f63e314c6b8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: # v3.17+ Reviewed-by: Sagi Grimberg Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c index 14c7d42a11c2..5c06d292b94c 100644 --- a/drivers/scsi/sd_dif.c +++ b/drivers/scsi/sd_dif.c @@ -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)