diff options
author | Hannes Reinecke <hare@suse.de> | 2012-03-28 21:41:25 +0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 21:41:25 +0400 |
commit | 4d7b38b7d944a79da3793b6c92d38682f3905ac9 (patch) | |
tree | 88f187c760c0dfd3cb8d7957a635254b3fcabd36 /drivers/md | |
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>
Diffstat (limited to 'drivers/md')
-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 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); |