]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Fix use of potentially uninitialized variable
authorAmadeusz Sławiński <amadeuszx.slawinski@intel.com>
Tue, 27 Aug 2019 14:17:08 +0000 (16:17 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 18:23:50 +0000 (19:23 +0100)
commitd6ff9b3689b4fc63a6d8c53f6865ad7e72f3d494
treeba8b92ee26239edf1eb0f139ddb8da153e0392e0
parent5c26cfc69937c7ba7992a7cceaf4893aeda18584
ASoC: Intel: Fix use of potentially uninitialized variable

If ipc->ops.reply_msg_match is NULL, we may end up using uninitialized
mask value.

reported by smatch:
sound/soc/intel/common/sst-ipc.c:266 sst_ipc_reply_find_msg() error: uninitialized symbol 'mask'.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@intel.com>
Link: https://lore.kernel.org/r/20190827141712.21015-3-amadeuszx.slawinski@linux.intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/intel/common/sst-ipc.c