rcuscale: using kcalloc() to relpace kmalloc()
authorSu Hui <suhui@nfschina.com>
Tue, 22 Apr 2025 01:51:45 +0000 (09:51 +0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Fri, 16 May 2025 13:00:54 +0000 (09:00 -0400)
commitbed3af437f38f9a7a8b8a7de153a421f023c6e0b
tree22c9c4401afc3c5bd37c1b4b2d4adc171d854d83
parent79ea7f43f8d5aeefc711d4ce322e0a7fbf41de14
rcuscale: using kcalloc() to relpace kmalloc()

It's safer to using kcalloc() because it can prevent overflow
problem.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
kernel/rcu/rcuscale.c