]> err.no Git - linux-2.6/blobdiff - net/bridge/netfilter/ebtable_nat.c
Merge branches 'pxa' and 'orion-fixes1'
[linux-2.6] / net / bridge / netfilter / ebtable_nat.c
index 3e58c2e5ee213c02881dc9b5cea498464a5c7b98..5b495fe2d0b6bb6326d583766c28af7ff272ff93 100644 (file)
@@ -55,7 +55,7 @@ static struct ebt_table frame_nat =
        .name           = "nat",
        .table          = &initial_table,
        .valid_hooks    = NAT_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(frame_nat.lock),
        .check          = check,
        .me             = THIS_MODULE,
 };
@@ -74,7 +74,7 @@ ebt_nat_src(unsigned int hook, struct sk_buff *skb, const struct net_device *in
        return ebt_do_table(hook, skb, in, out, &frame_nat);
 }
 
-static struct nf_hook_ops ebt_ops_nat[] = {
+static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
        {
                .hook           = ebt_nat_dst,
                .owner          = THIS_MODULE,