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)
commiteacd86ca3b036e55e172b7279f101cef4a6ff3a4
tree2f4aa2bb04d906e4a625eac4cbb04521f196825d
parent62b49c9908bcee88347efe8b4ed1b4f53c60ee66
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