diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2013-01-22 00:01:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-22 14:23:17 -0500 |
commit | b44108dbdbaa07c609bb5755e8dd6c2035236251 (patch) | |
tree | f5c9450d05411d8d76c97ac96d9d91243c1ea5bd /kernel/lockdep_proc.c | |
parent | 0c8729c9b914cc0360ab87171472ca7653b2aa0e (diff) |
ipv4: Fix route refcount on pmtu discovery
git commit 9cb3a50c (ipv4: Invalidate the socket cached route on
pmtu events if possible) introduced a refcount problem. We don't
get a refcount on the route if we get it from__sk_dst_get(), but
we need one if we want to reuse this route because __sk_dst_set()
releases the refcount of the old route. This patch adds proper
refcount handling for that case. We introduce a 'new' flag to
indicate that we are going to use a new route and we release the
old route only if we replace it by a new one.
Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/lockdep_proc.c')
0 files changed, 0 insertions, 0 deletions