Unverified Commit 550bc517 authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Mark Brown
Browse files

regulator: bd718x7: Use kcalloc() instead of kzalloc()



Replace calls of 'devm_kzalloc(dev, count * sizeof([type]), flags)'
with 'devm_kcalloc(dev, count, sizeof([type]), flags)' in
setup_feedback_loop() for safer memory allocation with built-in
overflow protection.

Signed-off-by: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20250817142327.174531-1-rongqianfeng@vivo.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6d068f1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment