Skip to content
Verified Commit 69a8d0ed authored by Shen Lichuan's avatar Shen Lichuan Committed by Mark Brown
Browse files

ASoC: SOF: topology: Use kmemdup_array instead of kmemdup for multiple allocation



Let the kmemdup_array() take care about multiplication
and possible overflows.

Using kmemdup_array() is more appropriate and makes the code
easier to audit.

Signed-off-by: default avatarShen Lichuan <shenlichuan@vivo.com>
Link: https://patch.msgid.link/20240826054402.58396-1-shenlichuan@vivo.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0225d3b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment