Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
mptcp: Build-Fix
Browse files Browse the repository at this point in the history
net/mptcp/mptcp_ctrl.c: In function 'mptcp_create_master_sk':
net/mptcp/mptcp_ctrl.c:2246:2: error: too few arguments to function 'inet_ehash_nolisten'
 2246 |  inet_ehash_nolisten(master_sk, NULL);
      |  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/net/tcp.h:32,
                 from ./include/net/mptcp.h:48,
                 from net/mptcp/mptcp_ctrl.c:36:
./include/net/inet_hashtables.h:251:6: note: declared here
  251 | bool inet_ehash_nolisten(struct sock *sk, struct sock *osk,
      |      ^~~~~~~~~~~~~~~~~~~

Fixes: b01b700 ("tcp: fix race condition when creating child sockets from syncookies")
Signed-off-by: Matthieu Baerts <[email protected]>
(cherry picked from commit 1530fac)
Signed-off-by: Matthieu Baerts <[email protected]>
  • Loading branch information
matttbe committed May 16, 2022
1 parent 14e685d commit 7fa887b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mptcp/mptcp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ int mptcp_create_master_sk(struct sock *meta_sk, __u64 remote_key,
}

meta_sk->sk_prot->unhash(meta_sk);
inet_ehash_nolisten(master_sk, NULL);
inet_ehash_nolisten(master_sk, NULL, NULL);

master_tp->mptcp->init_rcv_wnd = master_tp->rcv_wnd;

Expand Down

0 comments on commit 7fa887b

Please sign in to comment.