OSDN Git Service

soc: qcom: smem: fix off-by-one error in qcom_smem_alloc_private()
authorAlex Elder <elder@linaro.org>
Tue, 10 Apr 2018 22:25:40 +0000 (17:25 -0500)
committerAndy Gross <andy.gross@linaro.org>
Fri, 25 May 2018 20:53:55 +0000 (15:53 -0500)
commit8377f8181da8dce24ace68a43e280f6a6cb2c51c
tree4b8c125613105ce49ede711a6f6112681d659059
parent04a512fea333369cc0b550f3b90df0d638e34d00
soc: qcom: smem: fix off-by-one error in qcom_smem_alloc_private()

It's OK if the space for a newly-allocated uncached entry actually
touches the free cached space boundary.  It's only a problem if it
would cross it.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smem.c