Files
linux/drivers/scsi/qla2xxx
Bart Van Assche c4d66c922d tcm_qla2xxx: Fix incorrect use of __transport_register_session
[ Upstream commit 75c3d0bf9c ]

This patch fixes the incorrect use of __transport_register_session()
in tcm_qla2xxx_check_initiator_node_acl() code, that does not perform
explicit se_tpg->session_lock when accessing se_tpg->tpg_sess_list
to add new se_sess nodes.

Given that tcm_qla2xxx_check_initiator_node_acl() is not called with
qla_hw->hardware_lock held for all accesses of ->tpg_sess_list, the
code should be using transport_register_session() instead.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: <stable@vger.kernel.org> # 3.5+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-16 20:11:30 -04:00
..
2014-09-25 14:25:02 +02:00
2014-09-25 14:25:02 +02:00
2014-08-26 09:35:54 +02:00