]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dm: clear bi_end_io on remapping failure
authorHannes Reinecke <hare@suse.de>
Wed, 28 Mar 2012 17:41:25 +0000 (18:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 28 Mar 2012 17:41:25 +0000 (18:41 +0100)
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>
drivers/md/dm.c

index b89c548ec3f88612eb4a6fec4d6230ad413ed9c1..e24143cc2040b7f3f8f90a63c3b1b2cfe2b21c24 100644 (file)
@@ -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);