ASoC: qdsp6: q6asm-dai: Off by one in of_q6asm_parse_dai_data()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Dec 2018 09:04:42 +0000 (12:04 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:32:54 +0000 (16:32 +0000)
commiteef08e5350618b7a9fdc8ac5b821a925366c8f3f
tree92cf006cc1f1f3c2f6889bebe219cb086c07b0e3
parent28b698b7342c7d5300cfe217cd77ff7d2a55e03d
ASoC: qdsp6: q6asm-dai: Off by one in of_q6asm_parse_dai_data()

The q6asm_fe_dais[] array has MAX_SESSIONS (8) elements so the >
comparison should be >= or we access one element beyond the end of the
array.

Fixes: 22930c79ac5c ("ASoC: qdsp6: q6asm-dai: Add support to compress offload")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c