Commit 5609e2bb authored by Chen Wandun's avatar Chen Wandun Committed by David S. Miller

mptcp: make the symbol 'mptcp_sk_clone_lock' static

Fix the following sparse warning:
net/mptcp/protocol.c:646:13: warning: symbol 'mptcp_sk_clone_lock' was not declared. Should it be static?

Fixes: b0519de8 ("mptcp: fix use-after-free for ipv6")
Signed-off-by: default avatarChen Wandun <chenwandun@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2437fd7b
...@@ -643,7 +643,7 @@ static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk) ...@@ -643,7 +643,7 @@ static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk)
} }
#endif #endif
struct sock *mptcp_sk_clone_lock(const struct sock *sk) static struct sock *mptcp_sk_clone_lock(const struct sock *sk)
{ {
struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC); struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment