Searched hist:"390 e7066db29b985c5142513955797c1166b623a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/sof/ |
H A D | sof-client-probes-ipc4.c | diff 390e7066db29b985c5142513955797c1166b623a Mon Jul 31 16:37:41 CDT 2023 Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> 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 <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Yaochun Hung <yc.hung@mediatek.com> Link: https://lore.kernel.org/r/20230731213748.440285-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
|