Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Mike Snitzer
54385bf7 cc4a41fe

+1 -1
+1 -1
drivers/md/dm.c
··· 1523 1523 } 1524 1524 1525 1525 /* drop the extra reference count */ 1526 - dec_pending(ci.io, error); 1526 + dec_pending(ci.io, errno_to_blk_status(error)); 1527 1527 } 1528 1528 /*----------------------------------------------------------------- 1529 1529 * CRUD END