]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_quota.c
net: Simplify conntrack_proto_gre pernet operations.
[karo-tx-linux.git] / net / netfilter / xt_quota.c
index 01dd07b764ec46de6d82baec2625500bee2c714d..390b7d09fe512f2957769ace3b8a579b64f64086 100644 (file)
@@ -52,8 +52,9 @@ static bool quota_mt_check(const struct xt_mtchk_param *par)
 
        q->master = kmalloc(sizeof(*q->master), GFP_KERNEL);
        if (q->master == NULL)
-               return -ENOMEM;
+               return false;
 
+       q->master->quota = q->quota;
        return true;
 }