diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2021-02-01 11:31:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-02-01 13:18:58 +0000 |
commit | 941d3f0d7e9ffcbee1efeb6f07fa5fc5ef8347ff (patch) | |
tree | a1a35290c9989035373777499230de9206ea5472 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 0084364d9678e9d722ee620ed916f2f9954abdbf (diff) |
ASoC: SOF: topology: Prevent NULL pointer dereference with no TLV
When there is no TLV data in topology, extracting the TLV data
could result in a NULL pointer exception. Prevent this by making
sure that the TLV data exists before extracting it.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210201093128.1226603-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions