summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator_test.rs
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-17 22:23:27 +0800
committerMark Brown <broonie@kernel.org>2025-08-18 13:12:17 +0100
commit550bc517e59347b3b1af7d290eac4fb1411a3d4e (patch)
tree1eb72b2fca4cb99f95280ff2dc33eebfdd8b80aa /rust/kernel/alloc/allocator_test.rs
parent6d068f1ae2a2f713d7f21a9a602e65b3d6b6fc6d (diff)
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: Qianfeng Rong <rongqianfeng@vivo.com> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://patch.msgid.link/20250817142327.174531-1-rongqianfeng@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator_test.rs')
0 files changed, 0 insertions, 0 deletions