diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-06-13 18:07:33 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-16 18:47:15 +0300 |
commit | a462b950834945db22f94aa98181f861eff0574d (patch) | |
tree | 400c890efdbde6621d4d27c2bdb35e6461b9908d /block/t10-pi.c | |
parent | 047385b3dd85622768a882fc457a37e040640389 (diff) | |
download | linux-a462b950834945db22f94aa98181f861eff0574d.tar.xz |
block: Dedicated error code fixups
This patch fixes two sparse warnings introduced by the "dedicated
error codes for the block layer V3" patch series. These changes
have not been tested.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/t10-pi.c')
-rw-r--r-- | block/t10-pi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/t10-pi.c b/block/t10-pi.c index 350b3cbcf9e5..3416dadf7b15 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -91,7 +91,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, "(rcvd %u)\n", iter->disk_name, (unsigned long long) iter->seed, be32_to_cpu(pi->ref_tag)); - return -EILSEQ; + return BLK_STS_PROTECTION; } break; case 3: |