diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2025-02-05 16:52:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-02-05 17:06:26 +0300 |
commit | d8d99c3b5c485f339864aeaa29f76269cc0ea975 (patch) | |
tree | f698e36e2c5dc71078b146535aa728f9ddf9e8f3 /tools/perf/scripts/python/stackcollapse.py | |
parent | 98fcb50a98424efb9176d075c71e5af48b6104dd (diff) | |
download | linux-d8d99c3b5c485f339864aeaa29f76269cc0ea975.tar.xz |
ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data()
The nullity of sps->cstream should be checked similarly as it is done in
sof_set_stream_data_offset() function.
Assuming that it is not NULL if sps->stream is NULL is incorrect and can
lead to NULL pointer dereference.
Fixes: 090349a9feba ("ASoC: SOF: Add support for compress API for stream data/offset")
Cc: stable@vger.kernel.org
Reported-by: Curtis Malainey <cujomalainey@chromium.org>
Closes: https://github.com/thesofproject/linux/pull/5214
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://patch.msgid.link/20250205135232.19762-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions