From: Erick Archer Date: Fri, 5 Jan 2024 18:11:04 +0000 (+0000) Subject: PM: QoS: Use kcalloc() instead of kzalloc() X-Git-Tag: microblaze-v6.10~570^2^4 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=022e6f5184ff73eaaf6aa7a89b7fafc7c2bd8c9c;p=linux-2.6-microblaze.git PM: QoS: Use kcalloc() instead of kzalloc() Use 2-factor multiplication argument form kcalloc() instead of kzalloc(). Link: https://github.com/KSPP/linux/issues/162 Signed-off-by: Erick Archer Reviewed-by: Gustavo A. R. Silva Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c index 8e93167f1783..bd77f6734f14 100644 --- a/drivers/base/power/qos.c +++ b/drivers/base/power/qos.c @@ -201,7 +201,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev) if (!qos) return -ENOMEM; - n = kzalloc(3 * sizeof(*n), GFP_KERNEL); + n = kcalloc(3, sizeof(*n), GFP_KERNEL); if (!n) { kfree(qos); return -ENOMEM;