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)
commit214f45c91bbda8321d9676f1197238e4663edcbb
tree2b78e1d21298c1622755b09826ed2b8e5152d6e3
parented199facd070f8e551dc16a2ae1baa01d8d28ed4
net: provide default_advmss() methods to blackhole dst_ops

Commit 0dbaee3b37e118a (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