From: Bart Van Assche Date: Wed, 9 Aug 2017 18:32:10 +0000 (-0700) Subject: dm: fix the second dec_pending() argument in __split_and_process_bio() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54385bf75cc6451f29f3a149582584d5015d2c98;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Christoph Hellwig Tested-by: Laurence Oberman Signed-off-by: Mike Snitzer --- 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