]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: qcom: smem: initialize region struct only when successful
authorAlex Elder <elder@linaro.org>
Tue, 26 Jun 2018 00:58:46 +0000 (19:58 -0500)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 21:56:53 +0000 (16:56 -0500)
commit100d26e8ce65f33d229912be3bc563a93a786186
treee3567c8104ed69a67f9d10d71306a87af1f8b265
parent9f01b7a8f1d79c5679410e6a1d4b7e1b520f1e6d
soc: qcom: smem: initialize region struct only when successful

Hold off initializing anything for the array entry representing a
memory region in qcom_smem_map_memory() until we know we've
successfully mapped it.

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