Jesper Juhl 851a8a7fd4 dm: fix memory leak in dm_create_persistent() when starting metadata update thread fails
If, in dm_create_persistent(), the call to create_singlethread_workqueue()
fails then we'll return without freeing the memory allocated to 'ps', thus
leaking sizeof(struct pstore) bytes.  This patch fixes the leak.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com
Acked-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-18 08:38:22 -07:00
..
2007-07-16 09:05:40 -07:00
2007-07-16 09:05:42 -07:00
2007-07-12 16:34:30 -07:00
2007-07-17 10:23:04 -07:00
2007-07-17 17:26:24 -04:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-07-16 09:05:50 -07:00
2007-06-28 19:19:20 +10:00
2007-07-12 17:41:07 +01:00