diff options
author | Feng Li <lifeng1519@gmail.com> | 2016-07-11 22:15:44 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-07-20 20:26:51 (GMT) |
commit | 8abc718de6e9e52d8a6bfdb735060554aeae25e4 (patch) | |
tree | de8c02094723199dc80664d7d54d6f765f3de257 /drivers/target/tcm_fc/tfc_sess.c | |
parent | 88a678bbc34cecce36bf2c7a8af4cba38f9f77ce (diff) | |
download | linux-8abc718de6e9e52d8a6bfdb735060554aeae25e4.tar.xz |
iscsi-target: Fix panic when adding second TCP connection to iSCSI session
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: Feng Li <lifeng1519@gmail.com>
Tested-by: Sumit Rai <sumit.rai@calsoftinc.com>
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc/tfc_sess.c')
0 files changed, 0 insertions, 0 deletions