Commit 2b64e22f authored by Milan Broz's avatar Milan Broz Committed by Chris Wright

[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: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent 6e28fa8b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment