On 01/26/2017 12:36 AM, Bart Van Assche wrote: > Ensure that complete(&nacl->acl_free_comp) is called before the > node ACL is freed. > > Fixes: commit 21aaa23b0ebb ("target: Obtain se_node_acl->acl_kref during get_initiator_node_acl") > Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> > Cc: Nicholas A. Bellinger <nab@xxxxxxxxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Andy Grover <agrover@xxxxxxxxxx> > Cc: David Disseldorp <ddiss@xxxxxxx> > --- > drivers/target/target_core_transport.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c > index 9881f0ac08d2..55e1d3898bdd 100644 > --- a/drivers/target/target_core_transport.c > +++ b/drivers/target/target_core_transport.c > @@ -554,6 +554,7 @@ void transport_deregister_session(struct se_session *se_sess) > core_tpg_wait_for_nacl_pr_ref(se_nacl); > core_free_device_list_for_node(se_nacl, se_tpg); > se_sess->se_node_acl = NULL; > + target_put_nacl(se_nacl); > kfree(se_nacl); > } > pr_debug("TARGET_CORE[%s]: Deregistered fabric_sess\n", > Reviewed-by: Hannes Reiencke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html