Commit:     ec25615b9ddd5c584b4066652840581fdb6c5e7a
Parent:     961995582e3752e983dc3906a57546a188007440
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 22 12:24:38 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Mar 22 12:24:38 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/core/fib_rules.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index 215f1bf..3aea4e8 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -374,7 +374,7 @@ int fib_rules_dump(struct sk_buff *skb, struct 
netlink_callback *cb, int family)
                return -EAFNOSUPPORT;
-       list_for_each_entry(rule, ops->rules_list, list) {
+       list_for_each_entry_rcu(rule, ops->rules_list, list) {
                if (idx < cb->args[0])
                        goto skip;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to