diff options
| author | Peter Ujfalusi <[email protected]> | 2023-03-17 08:35:24 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-03-17 13:06:04 +0000 |
| commit | ef51cd1ebab63bb92bfef050fbf12b2265f5c7a5 (patch) | |
| tree | 6dfe9c3f6e994453ef73d10680dcc8649f466eeb /tools/perf/scripts | |
| parent | 1d8777d21fbb36c4a0e103eb128ca86f9761e61c (diff) | |
ASoC: SOF: ipc4-topology: Initialize in_format to NULL in sof_ipc4_get_audio_fmt
If the available_fmt->num_input_formats is 0 and there is a failure during
the output format parsing then a kfree() would be called on the
uninitialized in_format pointer.
By initializing the in_format to NULL, this error can be avoided.
Fixes: 7ab6b1e8302c ("ASoC: SOF: ipc4-topology: Modify the type of available input/output formats")
Signed-off-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Bard Liao <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions