]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qdsp6: qdafe: fix some off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jun 2018 08:56:53 +0000 (11:56 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 28 Jun 2018 10:16:37 +0000 (11:16 +0100)
commitcbbfc08d43f2c57e0868b201b3ed901baa16708a
treefb7b1bcc2000e131ef754fb78637f5c4c7469ee6
parent0b24bd41ed1350a990607e32aae0304b4b8435da
ASoC: qdsp6: qdafe: fix some off by one bugs

The > should be >= or we could read one element beyond the end of the
port_maps[] array.

Fixes: 52ef06dcee2e ("ASoC: qdsp6: q6afe: Add q6afe driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6afe.c