]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: SOF: topology: fix missing NULL pointer check
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 1 Nov 2019 17:09:14 +0000 (12:09 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 8 Nov 2019 12:09:49 +0000 (12:09 +0000)
commit8cd73ce7ba6381feb9df763240dee3a6d4aff1ca
treeac2cd328023480a1d394f458fa51b58d03d871a7
parentbd0b609e0c3362cb167c51d4bd4330d79fc00987
ASoC: SOF: topology: fix missing NULL pointer check

Add check to avoid possible NULL pointer dereference issue.

This issue was reported by static analysis tools, we didn't face this
issue but we can't rule it out either as a false positive.

Reported-by: Keqiao Zhang <keqiao.zhang@intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191101170916.26517-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c