]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/netfilter/xt_SECMARK.c
Merge branch 'locks' of git://linux-nfs.org/~bfields/linux
[mv-sheeva.git] / net / netfilter / xt_SECMARK.c
index f3e78c592f3a475a6063b4e30f0c966129681d76..235806eb6ecd725c1b43d3598483922d339bd6e0 100644 (file)
@@ -28,7 +28,7 @@ MODULE_ALIAS("ip6t_SECMARK");
 
 static u8 mode;
 
-static unsigned int target(struct sk_buff **pskb, const struct net_device *in,
+static unsigned int target(struct sk_buff *skb, const struct net_device *in,
                           const struct net_device *out, unsigned int hooknum,
                           const struct xt_target *target,
                           const void *targinfo)
@@ -47,7 +47,7 @@ static unsigned int target(struct sk_buff **pskb, const struct net_device *in,
                BUG();
        }
 
-       (*pskb)->secmark = secmark;
+       skb->secmark = secmark;
        return XT_CONTINUE;
 }
 
@@ -109,7 +109,7 @@ static bool checkentry(const char *tablename, const void *entry,
        return true;
 }
 
-static struct xt_target xt_secmark_target[] = {
+static struct xt_target xt_secmark_target[] __read_mostly = {
        {
                .name           = "SECMARK",
                .family         = AF_INET,