Skip to content

Commit

Permalink
[SCSI] sd: Return correct error code for DIF
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed Nov 26, 2009
1 parent a8a8a66 commit 3bf3583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/sd_dif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
be16_to_cpu(sdt->app_tag));

return -EIO;
return -EILSEQ;
}

/*
Expand Down

0 comments on commit 3bf3583

Please sign in to comment.