summaryrefslogtreecommitdiff
path: root/rust/helpers/of.c
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-20 20:34:19 +0800
committerMark Brown <broonie@kernel.org>2025-08-20 15:09:23 +0100
commit3b6f4bd6cda2797b0d999a129376c112d41604f4 (patch)
treee0589bfb7924f59e345c2607aa43d07cef5cca53 /rust/helpers/of.c
parent45441b933cdfb7a018674049f269d7a1bc1688df (diff)
ASoC: fsl: Use kcalloc() instead of kzalloc()
Use devm_kcalloc() in fsl_sai_read_dlcfg() and imx_audmux_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-3-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