OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:11 +0000 (16:59 -0700)
commit3dc220c5253ebc8bc454d14c604816738d4bc2a5
tree5ee2c46e3328c9da6d82fe0c4b841041d4831516
parent49fc6188cdb6a1aad28e57058b2a07c4b8a03889
ASoC: qdsp6: qdafe: fix some off by one bugs

[ Upstream commit c54c1c5ee8e73b7cb752834e52e2129b1dab00bd ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/qcom/qdsp6/q6afe.c