Skip to content

Commit

Permalink
dm: fix the second dec_pending() argument in __split_and_process_bio()
Browse files Browse the repository at this point in the history
Detected by sparse.

Fixes: 4e4cbee ("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>
  • Loading branch information
Bart Van Assche authored and Mike Snitzer committed Aug 28, 2017
1 parent cc4a41f commit 54385bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54385bf

Please sign in to comment.