Skip to content

Commit 8e1974a

Browse files
geertudavem330
authored andcommitted
mptcp: Fix incorrect IPV6 dependency check
If CONFIG_MPTCP=y, CONFIG_MPTCP_IPV6=n, and CONFIG_IPV6=m: net/mptcp/protocol.o: In function `__mptcp_tcp_fallback': protocol.c:(.text+0x786): undefined reference to `inet6_stream_ops' Fix this by checking for CONFIG_MPTCP_IPV6 instead of CONFIG_IPV6, like is done in all other places in the mptcp code. Fixes: 8ab183d ("mptcp: cope with later TCP fallback") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ccd1f27 commit 8e1974a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mptcp/protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void __mptcp_close(struct sock *sk, long timeout);
2828

2929
static const struct proto_ops *tcp_proto_ops(struct sock *sk)
3030
{
31-
#if IS_ENABLED(CONFIG_IPV6)
31+
#if IS_ENABLED(CONFIG_MPTCP_IPV6)
3232
if (sk->sk_family == AF_INET6)
3333
return &inet6_stream_ops;
3434
#endif

0 commit comments

Comments
 (0)