summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorSuresh Bhogavilli <sbhogavilli@verisign.com>2006-02-21 22:42:22 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-02-24 01:10:52 +0100
commit85259878499d6c428cba191bb4e415a250dcd75a (patch)
tree6b9c1592f66886917b6ec09dd55f9c52eb850561 /net/ipv4
parent[NETFILTER]: Fix bridge netfilter related in xfrm_lookup (diff)
downloadlinux-85259878499d6c428cba191bb4e415a250dcd75a.tar.xz
linux-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')
-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;