aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorAjit Kumar Pandey <[email protected]>2021-12-16 17:24:21 -0600
committerMark Brown <[email protected]>2021-12-17 11:06:18 +0000
commit182b682b9ab1348e07ea1bf9d8f2505cc67f9237 (patch)
tree5396defd8d855508947113b79c4c925240ccd684 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentcb515f105cab124c5740e70dd0e8c78186ae81b7 (diff)
ASoC: SOF: ipc: Add null pointer check for substream->runtime
When pcm stream is stopped "substream->runtime" pointer will be set to NULL by ALSA core. In case host received an ipc msg from firmware of type IPC_STREAM_POSITION after pcm stream is stopped, there will be kernel NULL pointer exception in ipc_period_elapsed(). This patch fixes it by adding NULL pointer check for "substream->runtime". Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Ajit Kumar Pandey <[email protected]> Signed-off-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/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions