Commit 0e2e8825 authored by Kevin Corry's avatar Kevin Corry Committed by Linus Torvalds

[PATCH] dm: Fix error cleanup in dm_create_persistent()

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: default avatarKevin Corry <kevcorry@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e9947b2f
......@@ -569,8 +569,8 @@ int dm_create_persistent(struct exception_store *store, uint32_t chunk_size)
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);
}
......
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