mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
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>
This commit is contained in:
parent
610a9b8f49
commit
022e6f5184
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user