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.4-rc2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06383f10c49f507220594a455c6491ca6f8c94ab;p=pandora-kernel.git tcm_fc: Do not free tpg structure during wq allocation failure 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 Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed