diff options
author | 2024-01-05 18:11:04 +0000 | |
---|---|---|
committer | 2024-01-09 14:55:49 +0100 | |
commit | 022e6f5184ff73eaaf6aa7a89b7fafc7c2bd8c9c (patch) | |
tree | 367cf4c88b4640050803528393040a33f930d7f4 | |
parent | Linux 6.7-rc8 (diff) | |
download | wireguard-linux-022e6f5184ff73eaaf6aa7a89b7fafc7c2bd8c9c.tar.xz wireguard-linux-022e6f5184ff73eaaf6aa7a89b7fafc7c2bd8c9c.zip |
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 <erick.archer@gmx.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/base/power/qos.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |