[SCSI] sd: Return correct error code for DIF
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Nov 2009 05:39:12 +0000 (00:39 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 26 Nov 2009 14:54:46 +0000 (08:54 -0600)
commit3bf3583b6a49c318f7ed350862d7a217b500e71c
tree51314d64bafe0043891853658b2e6e605ac2ffce
parenta8a8a669ea13d792296737505adc43ccacf3a648
[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>
drivers/scsi/sd_dif.c