Merge tag 'arm64-perf' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[deliverable/linux.git] / net / netfilter / nfnetlink_acct.c
index 5274b04c42a6cccfe10ce25026b5f45a1cf48510..4c2b4c0c4d5fa4ac209ab85020e97e14ed716ab9 100644 (file)
@@ -242,6 +242,9 @@ nfacct_filter_alloc(const struct nlattr * const attr)
        if (err < 0)
                return ERR_PTR(err);
 
+       if (!tb[NFACCT_FILTER_MASK] || !tb[NFACCT_FILTER_VALUE])
+               return ERR_PTR(-EINVAL);
+
        filter = kzalloc(sizeof(struct nfacct_filter), GFP_KERNEL);
        if (!filter)
                return ERR_PTR(-ENOMEM);
This page took 0.039526 seconds and 5 git commands to generate.