[patch 12/24] dm snapshot: fix freeing pending exception

From: Chris Wright
Date: Thu Dec 14 2006 - 20:34:40 EST

2.6.18-stable review patch. If anyone has any objections, please let us know.

From: Milan Broz <mbroz@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
drivers/md/dm-snap.c | 1 +
1 file changed, 1 insertion(+)

--- linux-
+++ linux-
@@ -691,6 +691,7 @@ static void pending_complete(struct pend


+ remove_exception(&pe->e);
goto out;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/