]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: client: don't call init_waitqueue_head(&info->conn_wait) twice in _smbd_get_conn...
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Aug 2025 16:12:13 +0000 (18:12 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Aug 2025 17:40:11 +0000 (12:40 -0500)
It is already called long before we may hit this cleanup code path.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c

index 8ed4ab6f1d3a2f3e4756fc0cd2161510660f38d4..c819cc6dcc4f8b6a87054d3248f8bc8e3dcad837 100644 (file)
@@ -1716,7 +1716,6 @@ negotiation_failed:
        cancel_delayed_work_sync(&info->idle_timer_work);
        destroy_caches_and_workqueue(info);
        sc->status = SMBDIRECT_SOCKET_NEGOTIATE_FAILED;
-       init_waitqueue_head(&info->conn_wait);
        rdma_disconnect(sc->rdma.cm_id);
        wait_event(info->conn_wait,
                sc->status == SMBDIRECT_SOCKET_DISCONNECTED);