From 4d7b38b7d944a79da3793b6c92d38682f3905ac9 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Wed, 28 Mar 2012 18:41:25 +0100 Subject: 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 --- drivers/md/dm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/md') 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); -- cgit v1.2.3