diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-03-09 17:21:27 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-10 15:51:09 +0300 |
commit | 1c668e1c0a0f74472469cd514f40c9012b324c31 (patch) | |
tree | aa5159666d0e38769ecb6819fe695bce856b2856 /arch | |
parent | 7c2a783c05b5821c54e686518d518f179372b8a8 (diff) | |
download | linux-1c668e1c0a0f74472469cd514f40c9012b324c31.tar.xz |
ASoC: qcom: sdm845: Fix array out of bounds access
Static analysis Coverity had detected a potential array out-of-bounds
write issue due to the fact that MAX AFE port Id was set to 16 instead
of using AFE_PORT_MAX macro.
Fix this by properly using AFE_PORT_MAX macro.
Fixes: 1b93a8843147 ("ASoC: qcom: sdm845: handle soundwire stream")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210309142129.14182-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions