diff options
author | Hannes Reinecke <hare@suse.de> | 2012-03-28 17:41:25 (GMT) |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 17:41:25 (GMT) |
commit | 4d7b38b7d944a79da3793b6c92d38682f3905ac9 (patch) | |
tree | 88f187c760c0dfd3cb8d7957a635254b3fcabd36 | |
parent | 574ce07eb0014069f1da763c219bb30ea4c266ec (diff) | |
download | linux-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>
-rw-r--r-- | drivers/md/dm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index b89c548..e24143c 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); |