瀏覽代碼

[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>
Martin K. Petersen 15 年之前
父節點
當前提交
3bf3583b6a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/sd_dif.c

+ 1 - 1
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;
 }
 
 /*