summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2006-12-05 16:11:18 +0100
committerChris Wright <chrisw@sous-sol.org>2006-12-16 16:20:47 -0800
commit2b64e22fdbc35b4a0e7c1cbda590daaced401c35 (patch)
tree9effd90c9dfaa4451b4c9c7a9ce7b2bdd66c9c0b
parent6e28fa8b0390dcbb883994f3c634c1f56fe4f93a (diff)
[PATCH] dm snapshot: fix freeing pending exception
Fix oops when removing full snapshot kernel bugzilla bug 7040 If a snapshot became invalid (full) while there is outstanding pending_exception, pending_complete() forgets to remove the corresponding exception from its exception table before freeing it. Already fixed in 2.6.19. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-rw-r--r--drivers/md/dm-snap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 1d0fafda0f76..6578b260feab 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -691,6 +691,7 @@ static void pending_complete(struct pending_exception *pe, int success)
free_exception(e);
+ remove_exception(&pe->e);
error_snapshot_bios(pe);
goto out;
}