linux/sound/soc/qcom
Christophe JAILLET 0839846274 ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp()
[ Upstream commit 673f58f62c ]

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:18:05 +02:00
..
qdsp6 ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp() 2022-08-25 11:18:05 +02:00
apq8016_sbc.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:40:39 +02:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:40:39 +02:00
common.c ASoC: qcom: common: Fix refcount imbalance on error 2020-09-23 12:40:39 +02:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig ASoC: qcom: Drop HAS_DMA dependency to fix link failure 2020-07-29 10:18:45 +02:00
lpass-apq8016.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
lpass-cpu.c ASoC: qcom: lpass-cpu: fix concurrency issue 2020-10-29 09:57:36 +01:00
lpass-ipq806x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
lpass-lpaif-reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
lpass-platform.c ASoC: qcom: lpass-platform: Fix memory leak 2020-11-24 13:29:07 +01:00
lpass.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
Makefile ASoC: qcom: make common.c as proper module 2018-08-06 12:50:04 +01:00
sdm845.c ASoC: qcom: sdm845: set driver name correctly 2020-11-18 19:20:21 +01:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:40:39 +02:00