Skip to content

Commit 0df3f92

Browse files
Sagi Grimberggregkh
authored andcommitted
Target/iser: Fix a wrong dereference in case discovery session is over iser
commit e0546fc upstream. 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 <sagig@mellanox.com> Reported-by: Alex Tabachnik <alext@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7b93e2d commit 0df3f92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/infiniband/ulp/isert/ib_isert.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,9 @@ isert_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login,
10531053
}
10541054
if (!login->login_failed) {
10551055
if (login->login_complete) {
1056-
if (isert_conn->conn_device->use_fastreg) {
1056+
if (!conn->sess->sess_ops->SessionType &&
1057+
isert_conn->conn_device->use_fastreg) {
1058+
/* Normal Session and fastreg is used */
10571059
u8 pi_support = login->np->tpg_np->tpg->tpg_attrib.t10_pi;
10581060

10591061
ret = isert_conn_create_fastreg_pool(isert_conn,

0 commit comments

Comments
 (0)