On Fri, Jan 08, 2016 at 09:31:14AM +0100, Bart Van Assche wrote: > Indeed. All error paths in all target drivers will have to be modified to > avoid that an acl reference leak is triggered if transport_init_session() > fails after core_tpg_check_initiator_node_acl() succeeded. I'm still hoping for a nice helper that does transport_init_session + core_tpg_check_initiator_node_acl + transport_register_session to isolated all that. It might need a callout to the driver somewhere to be flexible enough but still would be a huge win.. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html