]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: move ip6_sk_accept_pmtu from generic pmtu update path to ipv6 one
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 19 Dec 2013 11:54:58 +0000 (12:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 03:00:59 +0000 (22:00 -0500)
commit9b85d66428f2270ac4031bd4f782cedcaf9798c6
tree077ac4b5b2b76fd6b4f3c59a397ee4d73cd134d5
parentb33dddeae549d9e9ab581f28ab7b89c2bae81850
ipv6: move ip6_sk_accept_pmtu from generic pmtu update path to ipv6 one

In commit 1028e2988eecd0 ("ipv6: support IPV6_PMTU_INTERFACE on sockets")
I made a horrible mistake to add ip6_sk_accept_pmtu to the generic
sctp_icmp_frag_needed path. This results in build warnings if IPv6 is
disabled which were luckily caught by Fengguang's kbuild bot. But it
also leads to a kernel panic IPv4 frag-needed packet is received.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c
net/sctp/ipv6.c