diff options
| author | Pierre-Louis Bossart <[email protected]> | 2023-07-31 16:37:41 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-07-31 23:22:12 +0100 |
| commit | 390e7066db29b985c5142513955797c1166b623a (patch) | |
| tree | 4867a1445f1dc34e10c3fd304005b2f502d84885 /tools/perf/scripts/python | |
| parent | 169e154b8f338e022f09536cfca7eb4f38aa80a4 (diff) | |
ASoC: SOF: sof-client-probes-ipc4: add checks to prevent static analysis warnings
make KCFLAGS='-fanalyzer' sound/soc/sof/ reports several NULL pointer
dereference paths.
sof_ipc4_probe_get_module_info() can return a NULL value, but it's
only tested in the init state. Static analyzers cannot know the probe
state machine and hence flags a potential issue for all calls of that
function.
Squelch these errors by adding the same check consistently.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Reviewed-by: Yaochun Hung <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions