From: Jesper Juhl Date: Wed, 18 Jul 2007 07:49:08 +0000 (-0700) Subject: dm: fix memory leak in dm_create_persistent() when starting metadata update thread... X-Git-Tag: v2.6.23-rc1~504 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=851a8a7fd451db3dcd5d44d784083f0f66b24d57;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed