mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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 <[email protected]>
Cc: <[email protected]> # v3.17+
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
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;
|
||||
|
||||
if (!sdkp)
|
||||
if (!sdkp->ATO)
|
||||
return;
|
||||
|
||||
if (type == SD_DIF_TYPE3_PROTECTION)
|
||||
|
|
|
|||
Loading…
Reference in a new issue