From: Hannes Reinecke Date: Wed, 28 Mar 2012 17:41:25 +0000 (+0100) Subject: dm: clear bi_end_io on remapping failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d7b38b7d944a79da3793b6c92d38682f3905ac9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index b89c548ec3f8..e24143cc2040 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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);