diff options
author | Amadeusz Sławiński <[email protected]> | 2024-06-03 12:28:15 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-06-10 12:47:18 +0100 |
commit | 97ab304ecd95c0b1703ff8c8c3956dc6e2afe8e1 (patch) | |
tree | 3e63b279d909549257680b74b81b9349987b4845 /scripts/generate_rust_analyzer.py | |
parent | 2ed22161b19b11239aa742804549f63edd7c91e3 (diff) |
ASoC: topology: Fix references to freed memory
Most users after parsing a topology file, release memory used by it, so
having pointer references directly into topology file contents is wrong.
Use devm_kmemdup(), to allocate memory as needed.
Reported-by: Jason Montleon <[email protected]>
Link: https://github.com/thesofproject/avs-topology-xml/issues/22#issuecomment-2127892605
Reviewed-by: Cezary Rojewski <[email protected]>
Signed-off-by: Amadeusz Sławiński <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions