]> err.no Git - linux-2.6/blobdiff - net/ipv4/fib_semantics.c
[PATCH] remove verify_area(): remove or edit references to verify_area in Documentation/
[linux-2.6] / net / ipv4 / fib_semantics.c
index 7e4651b3caa8fc3a00f9ae5e0dca8243d89cd84a..d41219e8037c7a9f8a9c69dc1bd720f36d357d0b 100644 (file)
@@ -854,6 +854,7 @@ failure:
        return NULL;
 }
 
+/* Note! fib_semantic_match intentionally uses  RCU list functions. */
 int fib_semantic_match(struct list_head *head, const struct flowi *flp,
                       struct fib_result *res, __u32 zone, __u32 mask, 
                        int prefixlen)
@@ -861,7 +862,7 @@ int fib_semantic_match(struct list_head *head, const struct flowi *flp,
        struct fib_alias *fa;
        int nh_sel = 0;
 
-       list_for_each_entry(fa, head, fa_list) {
+       list_for_each_entry_rcu(fa, head, fa_list) {
                int err;
 
                if (fa->fa_tos &&