From: Martin K. Petersen Date: Tue, 10 Nov 2009 05:39:12 +0000 (-0500) Subject: [SCSI] sd: Return correct error code for DIF X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=3bf3583b6a49c318f7ed350862d7a217b500e71c;p=linux-edison.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c index 88da9774571..84be62149c6 100644 --- a/drivers/scsi/sd_dif.c +++ b/drivers/scsi/sd_dif.c @@ -418,7 +418,7 @@ error: __func__, virt, phys, be32_to_cpu(sdt->ref_tag), be16_to_cpu(sdt->app_tag)); - return -EIO; + return -EILSEQ; } /*