ipv4: fix ip_rt_update_pmtu()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Mar 2011 19:18:15 +0000 (12:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Mar 2011 19:18:15 +0000 (12:18 -0700)
commiteb49a97363f020c1d7eef8bcd93865726b1fa11d
treec6012d720a51e20fd2b27c45cbe68788652078d1
parent406b6f974dae76a5b795d5c251d11c979a4e509b
ipv4: fix ip_rt_update_pmtu()

commit 2c8cec5c10bc (Cache learned PMTU information in inetpeer) added
an extra inet_putpeer() call in ip_rt_update_pmtu().

This results in various problems, since we can free one inetpeer, while
it is still in use.

Ref: http://www.spinics.net/lists/netdev/msg159121.html

Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c