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)
commitc54c1c5ee8e73b7cb752834e52e2129b1dab00bd
treefb7b1bcc2000e131ef754fb78637f5c4c7469ee6
parentde15d7ff5bef98746fcb76a0db7ac46de48d3560
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: 7fa2d70f9766 ("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