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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 8 Mar 2012 20:10:56 +0000 (12:10 -0800)
commitd06283341aee9e48eff1b068779d340785c635ce
tree4b6085fababdbb6784db9945968cbf6ed292e0e8
parentc0974f89385970455a60a999ae4fc0a783cf458d
iscsi-target: Fix dynamic -> explict NodeACL pointer reference

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.

Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c