diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 5c77a5cd9..4d9bc4cd1 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -961,8 +961,8 @@ iscsi_drop_conns(struct spdk_iscsi_conn *conn, const char *conn_match, SPDK_DEBUGLOG(SPDK_LOG_ISCSI, "CID=%u\n", xconn->cid); - thread = spdk_io_channel_get_thread(spdk_io_channel_from_ctx(conn->pg)); - spdk_thread_send_msg(thread, _iscsi_conn_drop, conn); + thread = spdk_io_channel_get_thread(spdk_io_channel_from_ctx(xconn->pg)); + spdk_thread_send_msg(thread, _iscsi_conn_drop, xconn); num++; }