mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] DM 3/5: Fix error cleanup in dm_create_persistent()
@ 2004-06-09 10:31 Kevin Corry
  0 siblings, 0 replies; only message in thread
From: Kevin Corry @ 2004-06-09 10:31 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML

dm-exception-store.c: Fix error cleanup in dm_create_persistent().
This was originally found by chrisw during code review.

From: Dave Olien <dmo@osdl.org>
Signed-off-by: Kevin Corry <kevcorry@us.ibm.com>

--- diff/drivers/md/dm-exception-store.c	2004-06-09 08:47:09.210467016 +0000
+++ source/drivers/md/dm-exception-store.c	2004-06-09 08:49:14.167470664 +0000
@@ -569,8 +569,8 @@
       bad:
 	dm_io_put(sectors_to_pages(chunk_size));
 	if (ps) {
-		if (ps->callbacks)
-			vfree(ps->callbacks);
+		if (ps->area)
+			free_area(ps);
 
 		kfree(ps);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-09 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09 10:31 [PATCH] DM 3/5: Fix error cleanup in dm_create_persistent() Kevin Corry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®