]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/xt_recent.c
treewide: use kv[mz]alloc* rather than opencoded variants
[mirror_ubuntu-artful-kernel.git] / net / netfilter / xt_recent.c
index 37d581a31cffcee58cb73209dd53d0a18e3fc68f..3f6c4fa78bdb717c067b57b53a0900529dcc4000 100644 (file)
@@ -388,10 +388,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par,
        }
 
        sz = sizeof(*t) + sizeof(t->iphash[0]) * ip_list_hash_size;
-       if (sz <= PAGE_SIZE)
-               t = kzalloc(sz, GFP_KERNEL);
-       else
-               t = vzalloc(sz);
+       t = kvzalloc(sz, GFP_KERNEL);
        if (t == NULL) {
                ret = -ENOMEM;
                goto out;