aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorSuresh Bhogavilli <sbhogavilli@verisign.com>2006-02-21 13:42:22 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-02-23 16:10:52 -0800
commit85259878499d6c428cba191bb4e415a250dcd75a (patch)
tree6b9c1592f66886917b6ec09dd55f9c52eb850561 /net/ipv4/route.c
parent[NETFILTER]: Fix bridge netfilter related in xfrm_lookup (diff)
downloadlinux-dev-85259878499d6c428cba191bb4e415a250dcd75a.tar.xz
linux-dev-85259878499d6c428cba191bb4e415a250dcd75a.zip
[IPV4]: Fix garbage collection of multipath route entries
When garbage collecting route cache entries of multipath routes in rt_garbage_collect(), entries were deleted from the hash bucket 'i' while holding a spin lock on bucket 'k' resulting in a system hang. Delete entries, if any, from bucket 'k' instead. Signed-off-by: Suresh Bhogavilli <sbhogavilli@verisign.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index d82c242ea704..fca5fe0cf94a 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -835,7 +835,7 @@ static int rt_garbage_collect(void)
int r;
rthp = rt_remove_balanced_route(
- &rt_hash_table[i].chain,
+ &rt_hash_table[k].chain,
rth,
&r);
goal -= r;