diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-12-01 17:38:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-01 17:38:54 +0000 |
commit | a91376dac1634f849b2235372361cf4b88063dd4 (patch) | |
tree | ba8344bdc6a700f7460169593d4db72dfd877cf6 /target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch | |
parent | 0778adf28a0ffe9566602e3af097bf3b995ec75f (diff) | |
download | master-187ad058-a91376dac1634f849b2235372361cf4b88063dd4.tar.gz master-187ad058-a91376dac1634f849b2235372361cf4b88063dd4.tar.bz2 master-187ad058-a91376dac1634f849b2235372361cf4b88063dd4.zip |
kernel: update 3.18 to rc7
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43479 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch')
-rw-r--r-- | target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch b/target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch index 358d64b1a1..f652dafd18 100644 --- a/target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch +++ b/target/linux/generic/patches-3.18/610-netfilter_match_bypass_default_checks.patch @@ -76,11 +76,10 @@ counters = alloc_counters(table); if (IS_ERR(counters)) -@@ -965,6 +994,14 @@ copy_entries_to_user(unsigned int total_ - ret = -EFAULT; +@@ -966,6 +995,14 @@ copy_entries_to_user(unsigned int total_ goto free_counters; } -+ + + flags = e->ip.flags & IPT_F_MASK; + if (copy_to_user(userptr + off + + offsetof(struct ipt_entry, ip.flags), @@ -88,6 +87,7 @@ + ret = -EFAULT; + goto free_counters; + } - ++ for (i = sizeof(struct ipt_entry); i < e->target_offset; + i += m->u.match_size) { |