]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_recent.c
arm: imx: tx6: mfgtool defconfig
[karo-tx-linux.git] / net / netfilter / xt_recent.c
index bfdc29f1a04a82073a8527c599f7ca4dfdf09b78..a9faae89f95533a53da4651efb2f737e3a0952b4 100644 (file)
@@ -313,10 +313,7 @@ out:
 
 static void recent_table_free(void *addr)
 {
-       if (is_vmalloc_addr(addr))
-               vfree(addr);
-       else
-               kfree(addr);
+       kvfree(addr);
 }
 
 static int recent_mt_check(const struct xt_mtchk_param *par,
@@ -334,7 +331,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par,
        size_t sz;
 
        if (unlikely(!hash_rnd_inited)) {
-               hash_rnd = prandom_u32();
+               get_random_bytes(&hash_rnd, sizeof(hash_rnd));
                hash_rnd_inited = true;
        }
        if (info->check_set & ~XT_RECENT_VALID_FLAGS) {