]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:10:58 +0000 (18:10 +0200)
commit16370bc775cc6e2b1bbfd1e5af63de70f67c0975
treebe7fdd1b56d6fa44c03eb0b9f9880bd44b6c9b62
parent89d98ca0367b687562fc8c23b0985e667ae5be9e
soc: qcom: smp2p: Correct addressing of outgoing value

commit 63af8e44eaa56ffe613628742a2642c4c2f1a029 upstream.

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")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/qcom/smp2p.c