diff options
author | Hannes Reinecke <hare@suse.de> | 2012-03-28 13:41:25 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 13:41:25 -0400 |
commit | 4d7b38b7d944a79da3793b6c92d38682f3905ac9 (patch) | |
tree | 88f187c760c0dfd3cb8d7957a635254b3fcabd36 /drivers/md/dm.c | |
parent | 574ce07eb0014069f1da763c219bb30ea4c266ec (diff) |
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/dm.c')
-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, | |||
1016 | /* | 1016 | /* |
1017 | * Store bio_set for cleanup. | 1017 | * Store bio_set for cleanup. |
1018 | */ | 1018 | */ |
1019 | clone->bi_end_io = NULL; | ||
1019 | clone->bi_private = md->bs; | 1020 | clone->bi_private = md->bs; |
1020 | bio_put(clone); | 1021 | bio_put(clone); |
1021 | free_tio(md, tio); | 1022 | free_tio(md, tio); |