diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-05-06 07:27:28 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-05-06 07:27:28 +0200 |
commit | b087500203f92ec88b9e94e1488cbfcd7d857b5c (patch) | |
tree | 73476678d88a160f19eadbe5d19d2b70c6fb0e1d /kernel/include | |
parent | ce2db3afa72bd61e182be3d627a0101659a46a3e (diff) | |
download | ipset-b087500203f92ec88b9e94e1488cbfcd7d857b5c.tar.gz |
netfilter: ipset: Improve comment extension helpers
Allocate memory with kmalloc() rather than kzalloc().
Ported from a patch proposed by Sergey Popovich <popovich_sergei@mail.ua>.
Suggested-by: Sergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_comment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_comment.h b/kernel/include/linux/netfilter/ipset/ip_set_comment.h index bae5c76..5444b1b 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_comment.h +++ b/kernel/include/linux/netfilter/ipset/ip_set_comment.h @@ -34,7 +34,7 @@ ip_set_init_comment(struct ip_set_comment *comment, return; if (unlikely(len > IPSET_MAX_COMMENT_SIZE)) len = IPSET_MAX_COMMENT_SIZE; - c = kzalloc(sizeof(*c) + len + 1, GFP_ATOMIC); + c = kmalloc(sizeof(*c) + len + 1, GFP_ATOMIC); if (unlikely(!c)) return; strlcpy(c->str, ext->comment, len + 1); |