From: Mark Rustad Date: Tue, 3 Apr 2012 17:24:52 +0000 (-0700) Subject: tcm_fc: Do not free tpg structure during wq allocation failure X-Git-Tag: v3.2.15~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba6427f057d78fc9a5051d1b57f5c4798811b7c;p=pandora-kernel.git tcm_fc: Do not free tpg structure during wq allocation failure commit 06383f10c49f507220594a455c6491ca6f8c94ab upstream. Avoid freeing a registered tpg structure if an alloc_workqueue call fails. This fixes a bug where the failure was leaking memory associated with se_portal_group setup during the original core_tpg_register() call. Signed-off-by: Mark Rustad Acked-by: Kiran Patil Signed-off-by: Nicholas Bellinger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed