summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2012-04-03 10:24:52 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-13 08:33:49 -0700
commitaba6427f057d78fc9a5051d1b57f5c4798811b7c (patch)
tree9630716d35a862bac3d05265405fd475b63dd847 /kernel/sysctl.c
parent3e9e7cc0e5cf8d8234bce7b85692f2c6082e1e85 (diff)
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 <mark.d.rustad@intel.com> Acked-by: Kiran Patil <Kiran.patil@intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions