summaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-08-09 21:32:10 +0300
committerMike Snitzer <snitzer@redhat.com>2017-08-28 16:36:19 +0300
commit54385bf75cc6451f29f3a149582584d5015d2c98 (patch)
treed317cf55cb7bd2bf59f66229085fe56d65d77e2e /drivers/md/dm.c
parentcc4a41fe5541a73019a864883297bd5043aa6d98 (diff)
downloadlinux-54385bf75cc6451f29f3a149582584d5015d2c98.tar.xz
dm: fix the second dec_pending() argument in __split_and_process_bio()
Detected by sparse. Fixes: 4e4cbee93d56 ("block: switch bios to blk_status_t") Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Laurence Oberman <loberman@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 2edbcc2d7d3f..8298670757e9 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1523,7 +1523,7 @@ static void __split_and_process_bio(struct mapped_device *md,
}
/* drop the extra reference count */
- dec_pending(ci.io, error);
+ dec_pending(ci.io, errno_to_blk_status(error));
}
/*-----------------------------------------------------------------
* CRUD END