From 2b64e22fdbc35b4a0e7c1cbda590daaced401c35 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 5 Dec 2006 16:11:18 +0100 Subject: [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 Signed-off-by: Chris Wright --- drivers/md/dm-snap.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3