Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c6d9e22 authored by David Collins's avatar David Collins
Browse files

regulator: cpr3-regulator: replace kzalloc with kcalloc for arrays



Use kcalloc() and devm_kcalloc() in place of kzalloc() and
devm_kzalloc() for array memory allocations.  kcalloc() performs
a sanity check to ensure that arithmetic overflow does not occur
when calculating the full size of an array.

This issue was found with checkpatch.

Change-Id: I3e65b2b296f1865c7314f3225e48c5df52f39e01
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent cfdf33da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment