]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: stream: fix out of boundary access on port properties
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 22 May 2019 16:24:43 +0000 (17:24 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 May 2019 05:04:12 +0000 (10:34 +0530)
commit8ec5e99e8d49eab2b4c50e9b9d720015211f5bff
tree96a116c3d313bc0712e21f41c9f7d55f8bd630d1
parent49250288820449e26abffc1305ba221bd05ce90d
soundwire: stream: fix out of boundary access on port properties

Assigning local iterator to array element and using it again for
indexing would cross the array boundary.
Fix this by directly referring array element without using the local
variable.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c