diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-02 20:30:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-02 20:30:24 +0100 |
commit | 3872b284087081ee5cb0e4630954c2f7a2153cf5 (patch) | |
tree | ead36598e35730e419edcf42dc788290af9e3d5b /net/bridge | |
parent | inet: Replace left-over references to inet->cork (diff) | |
parent | netfilter: nf_ct_tcp: fix out of sync scenario while in SYN_RECV (diff) | |
download | linux-3872b284087081ee5cb0e4630954c2f7a2153cf5.tar.xz linux-3872b284087081ee5cb0e4630954c2f7a2153cf5.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 5f1825df9dca..893669caa8de 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -1107,6 +1107,8 @@ static int do_replace(struct net *net, const void __user *user, if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) return -ENOMEM; + tmp.name[sizeof(tmp.name) - 1] = 0; + countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; newinfo = vmalloc(sizeof(*newinfo) + countersize); if (!newinfo) |