Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54385bf7 authored by Bart Van Assche's avatar Bart Van Assche Committed by Mike Snitzer
Browse files

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: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarLaurence Oberman <loberman@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cc4a41fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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