]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Use kmalloc() in comment extension helper
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 6 May 2015 05:27:28 +0000 (07:27 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 12:28:43 +0000 (13:28 +0100)
commitf5a4944a2eac0b250fd25bd61977b75c7aae20a4
treee21096b00a5ecb67fcb2c625197deec7f2d6991c
parenta2c2a49765e0648eca651d4268059e7911656484
netfilter: ipset: Use kmalloc() in comment extension helper

Allocate memory with kmalloc() rather than kzalloc(): the string
is immediately initialized so it is unnecessary to zero out
the allocated memory area.

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>
include/linux/netfilter/ipset/ip_set_comment.h