提交 54385bf7 编写于 作者: B Bart Van Assche 提交者: Mike Snitzer

dm: fix the second dec_pending() argument in __split_and_process_bio()

Detected by sparse.

Fixes: 4e4cbee9 ("block: switch bios to blk_status_t")
Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Tested-by: NLaurence Oberman <loberman@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 cc4a41fe
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册