diff options
author | David S. Miller <davem@davemloft.net> | 2015-05-02 22:05:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-02 22:05:58 -0400 |
commit | 3715544750e4a250f881254900cccebc57509fde (patch) | |
tree | 478205aefd34a74a0ed2f236c19291973d519fa4 /net/ipv4 | |
parent | 629161f649ca259cfc1473a98347b941dd7a52bc (diff) | |
parent | 6c3c1eb3c35e8856d6dcb01b412316a676f58bbe (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge net into net-next.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ping.c | 1 | ||||
-rw-r--r-- | net/ipv4/route.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index a93f260cf24c..05ff44b758df 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -158,6 +158,7 @@ void ping_unhash(struct sock *sk) if (sk_hashed(sk)) { write_lock_bh(&ping_table.lock); hlist_nulls_del(&sk->sk_nulls_node); + sk_nulls_node_init(&sk->sk_nulls_node); sock_put(sk); isk->inet_num = 0; isk->inet_sport = 0; diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 81f513d6f27f..7cad0bf1c71c 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -960,10 +960,7 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu) if (dst_metric_locked(dst, RTAX_MTU)) return; - if (dst->dev->mtu < mtu) - return; - - if (rt->rt_pmtu && rt->rt_pmtu < mtu) + if (ipv4_mtu(dst) < mtu) return; if (mtu < ip_rt_min_pmtu) |