]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/core/fib_rules.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next-2.6
[mirror_ubuntu-artful-kernel.git] / net / core / fib_rules.c
index 8248ebb5891d0764eebb9d4cbc2256c091ff357c..3911586e12e4b09d2fa5ab0d02110d5db877f479 100644 (file)
@@ -590,7 +590,8 @@ static int dump_rules(struct sk_buff *skb, struct netlink_callback *cb,
        int idx = 0;
        struct fib_rule *rule;
 
-       list_for_each_entry(rule, &ops->rules_list, list) {
+       rcu_read_lock();
+       list_for_each_entry_rcu(rule, &ops->rules_list, list) {
                if (idx < cb->args[1])
                        goto skip;