]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Fix fib_rules dump race
authorPatrick McHardy <kaber@trash.net>
Thu, 22 Mar 2007 19:24:38 +0000 (12:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2007 19:24:38 +0000 (12:24 -0700)
commite22f087a13c4b22129d15ffef737802fc3cbaa10
treee84b4eff19ef3919232bb54d53b6e1ffd41d9cdc
parent6277d88d8613f1358db9260400758145f5f4c946
[NET]: Fix fib_rules dump race

fib_rules_dump needs to use list_for_each_entry_rcu to protect against
concurrent changes to the rules list.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c