lkml.org 
[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] DM 3/5: Fix error cleanup in dm_create_persistent()
Date
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);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.020 / U:5.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site