Skip to contentSkip to conversation

sd_dif: Return correct error code

PATCH New Martin K. Petersen 1 participant 1 message Nov 10, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sd_dif: Return correct error code

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).

---

drivers/scsi/sd_dif.c +1 -1
index 88da977..84be621 100644
@@ -418,7 +418,7 @@ error:
 		  __func__, virt, phys, be32_to_cpu(sdt->ref_tag),
 		  be16_to_cpu(sdt->app_tag));
 
-	return -EIO;
+	return -EILSEQ;
 }
 
 /*