projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
574ce07
)
dm: clear bi_end_io on remapping failure
author
Hannes Reinecke
<hare@suse.de>
Wed, 28 Mar 2012 17:41:25 +0000
(18:41 +0100)
committer
Alasdair 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm.c
b/drivers/md/dm.c
index b89c548ec3f88612eb4a6fec4d6230ad413ed9c1..e24143cc2040b7f3f8f90a63c3b1b2cfe2b21c24 100644
(file)
--- 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);