diff options
-rw-r--r-- | drivers/md/dm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 9ec6948e3b8b..3d9a80759d95 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -974,7 +974,8 @@ static void dec_pending(struct dm_io *io, int error) | |||
974 | } else { | 974 | } else { |
975 | /* done with normal IO or empty flush */ | 975 | /* done with normal IO or empty flush */ |
976 | trace_block_bio_complete(md->queue, bio, io_error); | 976 | trace_block_bio_complete(md->queue, bio, io_error); |
977 | bio->bi_error = io_error; | 977 | if (io_error) |
978 | bio->bi_error = io_error; | ||
978 | bio_endio(bio); | 979 | bio_endio(bio); |
979 | } | 980 | } |
980 | } | 981 | } |