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

Commit 4d7b38b7 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Alasdair G Kergon
Browse files

dm: clear bi_end_io on remapping failure



As a precaution, set bi_end_io to NULL when failing to remap.

Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 574ce07e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1016,6 +1016,7 @@ static void __map_bio(struct dm_target *ti, struct bio *clone,
		/*
		 * Store bio_set for cleanup.
		 */
		clone->bi_end_io = NULL;
		clone->bi_private = md->bs;
		bio_put(clone);
		free_tio(md, tio);