diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-20 20:34:20 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-08-20 15:09:24 +0100 |
| commit | 96bcb34df55f7fee99795127c796315950c94fed (patch) | |
| tree | 2524efa15e1fce9b2640b97eb9555889ecefcbbb /rust/helpers/of.c | |
| parent | 3b6f4bd6cda2797b0d999a129376c112d41604f4 (diff) | |
ASoC: test-component: Use kcalloc() instead of kzalloc()
Use devm_kcalloc() in test_driver_probe() to gain built-in overflow
protection, making memory allocation safer when calculating allocation
size compared to explicit multiplication.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://patch.msgid.link/20250820123423.470486-4-rongqianfeng@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/of.c')
0 files changed, 0 insertions, 0 deletions
