[PATCH 5.3 161/166] dm zoned: fix invalid memory access
From: Greg Kroah-Hartman
Date: Sun Oct 06 2019 - 13:55:33 EST
From: Mikulas Patocka <mpatocka@xxxxxxxxxx>
commit 0c8e9c2d668278652af028c3cc068c65f66342f4 upstream.
Commit 75d66ffb48efb30f2dd42f041ba8b39c5b2bd115 ("dm zoned: properly
handle backing device failure") triggers a coverity warning:
---
drivers/md/dm-zoned-target.c | 2 --
1 file changed, 2 deletions(-)
--- a/drivers/md/dm-zoned-target.c
+++ b/drivers/md/dm-zoned-target.c
@@ -134,8 +134,6 @@ static int dmz_submit_bio(struct dmz_tar
refcount_inc(&bioctx->ref);
generic_make_request(clone);
- if (clone->bi_status == BLK_STS_IOERR)
- return -EIO;
if (bio_op(bio) == REQ_OP_WRITE && dmz_is_seq(zone))
zone->wp_block += nr_blocks;