summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2012-03-28 21:41:25 +0400
committerAlasdair G Kergon <agk@redhat.com>2012-03-28 21:41:25 +0400
commit4d7b38b7d944a79da3793b6c92d38682f3905ac9 (patch)
tree88f187c760c0dfd3cb8d7957a635254b3fcabd36 /drivers/md
parent574ce07eb0014069f1da763c219bb30ea4c266ec (diff)
downloadlinux-4d7b38b7d944a79da3793b6c92d38682f3905ac9.tar.xz
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 <hare@suse.de> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c1
1 files changed, 1 insertions, 0 deletions
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);