]> git.baikalelectronics.ru Git - kernel.git/commit
net/netfilter/x_tables.c: use kvmalloc() in xt_alloc_table_info()
authorMichal Hocko <mhocko@suse.com>
Wed, 12 Jul 2017 21:35:37 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Jul 2017 23:26:02 +0000 (16:26 -0700)
commit36fc8aa2c187750f943243f6c1321ffe17b9dbaf
tree2f4aa2bb04d906e4a625eac4cbb04521f196825d
parent947b4035d6f171a66e57b11c48dbb7f8156e52d2
net/netfilter/x_tables.c: use kvmalloc() in xt_alloc_table_info()

xt_alloc_table_info() basically opencodes kvmalloc() so use the library
function instead.

Link: http://lkml.kernel.org/r/20170531155145.17111-4-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/netfilter/x_tables.c