]> git.baikalelectronics.ru Git - kernel.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)
commit813ada2fd50e75b558c51196f138041c0438cde3
treee3567c8104ed69a67f9d10d71306a87af1f8b265
parent46621596e60287645e8da2043818eaaffaef0613
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