summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSubasri S <subasris1210@gmail.com>2026-07-16 19:37:10 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2026-07-24 11:45:19 +0200
commitcca2780b61947fd27ec621541edd0902e193a609 (patch)
tree586554523c5a92095c1409c0d0afd8cfce019beb /include/linux
parent874f455c3a2954b5b56fbedf97da39c34df9dc0e (diff)
ipvs: use type-safe allocation helpers in ip_vs_rht_alloc
As per Documentation/process/deprecated.rst, open-coded kmalloc assignments for struct objects are deprecated. Replace kzalloc(sizeof(*ptr), GFP_KERNEL) with kzalloc_obj() and kvmalloc_array(n, sizeof(*ptr), GFP_KERNEL) with kvmalloc_objs() in ip_vs_rht_alloc(). Compile tested with CONFIG_IP_VS=y and runtime tested using tools/testing/selftests/net/netfilter/ipvs.sh on x86_64/QEMU. Signed-off-by: Subasri S <subasris1210@gmail.com> Reviewed-by: Phil Sutter <phil@nwl.cc> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions