summaryrefslogtreecommitdiffstats
path: root/net/ipv4
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
parent42cf93cd464e0df3c85d298c647411bae6d99e6e (diff)
[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 d82c242ea70..fca5fe0cf94 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;