mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 16:10:19 +07:00
[SCSI] sd: Return correct error code for DIF
sd_dif.c was not updated to return -EILSEQ, leading to error handling failures in applications which provide their own integrity metadata (as opposed to being protected by the block layer functions). Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
a8a8a669ea
commit
3bf3583b6a
@ -418,7 +418,7 @@ int sd_dif_prepare(struct request *rq, sector_t hw_sector, unsigned int sector_s
|
|||||||
__func__, virt, phys, be32_to_cpu(sdt->ref_tag),
|
__func__, virt, phys, be32_to_cpu(sdt->ref_tag),
|
||||||
be16_to_cpu(sdt->app_tag));
|
be16_to_cpu(sdt->app_tag));
|
||||||
|
|
||||||
return -EIO;
|
return -EILSEQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user