]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: Fix incorrect IPV6 dependency check
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 29 Jan 2020 18:01:17 +0000 (19:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jan 2020 08:55:37 +0000 (09:55 +0100)
commit41e42d63dd6c894924e28c9b9e56e648f611ce69
treed493d1ec90197092c1958af74abf8ae057150c48
parent4ab5c12f51f13cbf1d80d810ff4034adffb2d2b0
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: 2b68ced0b2ba5138 ("mptcp: cope with later TCP fallback")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c