iscsi-target: Fix dynamic -> explict NodeACL pointer reference
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 27 Feb 2012 06:16:07 +0000 (22:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:52:45 +0000 (09:52 -0700)
commitabd8ea073d7438c42004aac75d4bbb46e7a8c054
tree1df103a66d1fbd8835e715c7c5866f768511f34c
parent05ea4968dcc95650e2d1e1b67102018cdbd80e65
iscsi-target: Fix dynamic -> explict NodeACL pointer reference

commit d06283341aee9e48eff1b068779d340785c635ce upstream.

This patch fixes a free after use in lio_target_make_nodeacl() where
iscsi_node_acl was referenced from the original se_nacl_new allocation,
instead of from core_tpg_add_initiator_node_acl() in the case of dynamic
-> explict NodeACL conversion.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/iscsi/iscsi_target_configfs.c