mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
dm: clear bi_end_io on remapping failure
As a precaution, set bi_end_io to NULL when failing to remap. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
This commit is contained in:
parent
574ce07eb0
commit
4d7b38b7d9
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue