Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
target
/
iscsi
/
iscsi_target_login.c
diff --git
a/kernel/drivers/target/iscsi/iscsi_target_login.c
b/kernel/drivers/target/iscsi/iscsi_target_login.c
index
96e78c8
..
316f661
100644
(file)
--- a/
kernel/drivers/target/iscsi/iscsi_target_login.c
+++ b/
kernel/drivers/target/iscsi/iscsi_target_login.c
@@
-1357,8
+1357,9
@@
static int __iscsi_target_login_thread(struct iscsi_np *np)
}
login->zero_tsih = zero_tsih;
}
login->zero_tsih = zero_tsih;
- conn->sess->se_sess->sup_prot_ops =
- conn->conn_transport->iscsit_get_sup_prot_ops(conn);
+ if (conn->sess)
+ conn->sess->se_sess->sup_prot_ops =
+ conn->conn_transport->iscsit_get_sup_prot_ops(conn);
tpg = conn->tpg;
if (!tpg) {
tpg = conn->tpg;
if (!tpg) {