diff options
| author | 2025-08-20 20:07:12 +0100 | |
|---|---|---|
| committer | 2025-08-20 20:07:12 +0100 | |
| commit | 865052d16a42a71679029d7545af809a63b42c66 (patch) | |
| tree | 96d51db98805ec7a8165ad09d9b690d85a1d67c1 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | ASoC: dt-bindings: Convert TI TWL4030 sound (diff) | |
| parent | ASoC: test-component: Use kcalloc() instead of kzalloc() (diff) | |
ASoC: Use kcalloc() instead of kzalloc()
Merge series from Qianfeng Rong <rongqianfeng@vivo.com>:
Replace devm_kzalloc() with devm_kcalloc() in sound/soc. As noted in the
kernel documentation [1], open-coded multiplication in allocator arguments
is discouraged because it can lead to integer overflow.
Using devm_kcalloc() provides built-in overflow protection, making the
memory allocation safer when calculating the allocation size compared
to explicit multiplication.
[1]: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
