]> git.baikalelectronics.ru Git - kernel.git/commit
net: provide default_advmss() methods to blackhole dst_ops
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 18 Feb 2011 19:39:01 +0000 (11:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Feb 2011 19:39:01 +0000 (11:39 -0800)
commitc969a412d4d81dcfe6f953693543706cf88600ac
tree2b78e1d21298c1622755b09826ed2b8e5152d6e3
parenteb02ecdfd9c06f3a8e24b10cdb37ba0561b13de6
net: provide default_advmss() methods to blackhole dst_ops

Commit d82cbb414cc2bb2 (net: Abstract default ADVMSS behind an
accessor.) introduced a possible crash in tcp_connect_init(), when
dst->default_advmss() is called from dst_metric_advmss()

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
net/ipv6/route.c