aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorCezary Rojewski <[email protected]>2020-03-12 13:00:58 +0100
committerMark Brown <[email protected]>2020-03-12 13:12:35 +0000
commit16dcefc23eefda57ee705dcffba67f1bd42c01bc (patch)
treee5d16f3397e1be75a93a461a69ec0f1a1c0c3cda /tools/perf/util/scripting-engines/trace-event-python.c
parenta5107b1a0993ff035dc8a1cf331da7bf961e4cbb (diff)
ASoC: SOF: Intel: Fix stream cleanup on hw free
Field "substream" gets assigned during stream setup in hda_dsp_pcm_hw_params() but it is never cleared afterwards during cleanup procedure. Now, any non-pcm operation e.g.: compress can mistakenly make use of that pointer as it's bypassing all "if (s->substream)" checks. Nulling the pointer during hw_free operation ensures no wild pointers are left behind. Fixes: cdae3b9a47aa ("ASoC: SOF: Intel: Add Intel specific HDA PCM operations") Signed-off-by: Cezary Rojewski <[email protected]> Acked-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions