Commit c20fc2b0 authored by Feng Li's avatar Feng Li Committed by popcornmix
Browse files

iscsi-target: Fix panic when adding second TCP connection to iSCSI session



commit 8abc718d upstream.

In MC/S scenario, the conn->sess has been set NULL in
iscsi_login_non_zero_tsih_s1 when the second connection comes here,
then kernel panic.

The conn->sess will be assigned in iscsi_login_non_zero_tsih_s2. So
we should check whether it's NULL before calling.

Signed-off-by: default avatarFeng Li <lifeng1519@gmail.com>
Tested-by: default avatarSumit Rai <sumit.rai@calsoftinc.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acce8882
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment