[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>
This commit is contained in:
Milan Broz
2006-12-05 16:11:18 +01:00
committed by Chris Wright
parent 6e28fa8b03
commit 2b64e22fdb
+1
View File
@@ -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;
}