DM 3/5: Fix error cleanup in dm_create_persistent()
PATCH 1/1 DM 3/5: 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 <[email protected]>
Signed-off-by Kevin Corry <[email protected]>
drivers/md/dm-exception-store.c +2 -2
@@ -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); }