]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: qcom: smp2p: Correct addressing of outgoing value
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 10 Jun 2016 00:22:56 +0000 (17:22 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 24 Jun 2016 18:34:00 +0000 (13:34 -0500)
commit63af8e44eaa56ffe613628742a2642c4c2f1a029
tree9c8fb55184165a30173cd401a3ba514122ceb33e
parent6be2b3d0848d1ed3e78e416cc4ae9007e85c7533
soc: qcom: smp2p: Correct addressing of outgoing value

The valid_entries index should not be incremented until after we have
acquired the pointer to the value, or we will read and write data one
item off.

Fixes: 50e99641413e ("soc: qcom: smp2p: Qualcomm Shared Memory Point to Point")
Cc: stable@vger.kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smp2p.c