android_kernel_xiaomi_sm7250/sound/soc/qcom
Christophe JAILLET 6d419278c7 ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp()
[ Upstream commit 673f58f62ca6fc98979d1cf3fe89c3ff33f29b2e ]

find_first_zero_bit() returns MAX_COPPS_PER_PORT at max here.
So 'idx' should be tested with ">=" or the test can't match.

Fixes: 7b20b2be51 ("ASoC: qdsp6: q6adm: Add q6adm driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/0fca3271649736053eb9649d87e1ca01b056be40.1658394124.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:15:24 +02:00
..
qdsp6
apq8016_sbc.c
apq8096.c
common.c
common.h
Kconfig
lpass-apq8016.c
lpass-cpu.c
lpass-ipq806x.c
lpass-lpaif-reg.h
lpass-platform.c
lpass.h
Makefile
sdm845.c
storm.c