diff options
author | Stijn Segers <foss@volatilesystems.org> | 2018-03-28 19:51:52 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-04-01 15:21:14 +0200 |
commit | bed0ee7cbfaa50f1db75089ba3c6c2d602777e25 (patch) | |
tree | e4cd1d9fc98bca9ae2337ef68182aba93b957ac3 /target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch | |
parent | fad29d2c3dea9af148b50acdb9f6dc2a200c8ca9 (diff) | |
download | mtk-20170518-bed0ee7cbfaa50f1db75089ba3c6c2d602777e25.zip mtk-20170518-bed0ee7cbfaa50f1db75089ba3c6c2d602777e25.tar.gz mtk-20170518-bed0ee7cbfaa50f1db75089ba3c6c2d602777e25.tar.bz2 |
Kernel: bump 4.4 to 4.4.124 for 17.01
* Refreshed patches
* Removed 087-Revert-led-core-Fix-brightness-setting-when-setting-.patch (applied upstream)
Compile-tested on ar71xx, ramips/mt7621, x86/64
Run-tested on ar71xx
Signed-off-by: Stijn Segers <foss@volatilesystems.org>
Diffstat (limited to 'target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch')
-rw-r--r-- | target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch b/target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch index 257bcf7..0967795 100644 --- a/target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch +++ b/target/linux/generic/patches-4.4/610-netfilter_match_bypass_default_checks.patch @@ -50,16 +50,16 @@ static bool ip_checkentry(const struct ipt_ip *ip) { -@@ -655,6 +681,8 @@ find_check_entry(struct ipt_entry *e, st +@@ -659,6 +685,8 @@ find_check_entry(struct ipt_entry *e, st + struct xt_mtchk_param mtpar; struct xt_entry_match *ematch; - unsigned long pcnt; + ip_checkdefault(&e->ip); + - pcnt = xt_percpu_counter_alloc(); - if (IS_ERR_VALUE(pcnt)) + if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) return -ENOMEM; -@@ -953,6 +981,7 @@ copy_entries_to_user(unsigned int total_ + +@@ -957,6 +985,7 @@ copy_entries_to_user(unsigned int total_ const struct xt_table_info *private = table->private; int ret = 0; const void *loc_cpu_entry; @@ -67,7 +67,7 @@ counters = alloc_counters(table); if (IS_ERR(counters)) -@@ -979,6 +1008,14 @@ copy_entries_to_user(unsigned int total_ +@@ -983,6 +1012,14 @@ copy_entries_to_user(unsigned int total_ ret = -EFAULT; goto free_counters; } |