Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85259878 authored by Suresh Bhogavilli's avatar Suresh Bhogavilli Committed by David S. Miller
Browse files

[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: default avatarSuresh Bhogavilli <sbhogavilli@verisign.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 42cf93cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;