mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Target/iser: Fix a wrong dereference in case discovery session is over iser
In case the discovery session is carried over iser, we can't access the assumed network portal since the default portal is used. In this case we don't really need to allocate the fastreg pool, just prepare to the text pdu that will follow. Signed-off-by: Sagi Grimberg <[email protected]> Reported-by: Alex Tabachnik <[email protected]> Cc: [email protected] # 3.15+ Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
bbc0504885
commit
e0546fc1ba
1 changed files with 3 additions and 1 deletions
|
|
@ -1053,7 +1053,9 @@ isert_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login,
|
|||
}
|
||||
if (!login->login_failed) {
|
||||
if (login->login_complete) {
|
||||
if (isert_conn->conn_device->use_fastreg) {
|
||||
if (!conn->sess->sess_ops->SessionType &&
|
||||
isert_conn->conn_device->use_fastreg) {
|
||||
/* Normal Session and fastreg is used */
|
||||
u8 pi_support = login->np->tpg_np->tpg->tpg_attrib.t10_pi;
|
||||
|
||||
ret = isert_conn_create_fastreg_pool(isert_conn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue