diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-07-21 12:02:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-21 16:16:09 +0300 |
commit | 60e494b4d5784e83314ac00f72ce8e1e4c9f29f7 (patch) | |
tree | 0289991ceed0f56ad908d5b06922b1bc5b6645d4 /fs | |
parent | 5682b4f84aabdb520b678c1f06ad985f2d052d0a (diff) | |
download | linux-60e494b4d5784e83314ac00f72ce8e1e4c9f29f7.tar.xz |
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: 7b20b2be51e1 ("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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions