From c59edf21d4bbef61fb3b020a439b116c9007e4b6 Mon Sep 17 00:00:00 2001 From: Gaurav Kohli Date: Sat, 25 Mar 2017 17:36:30 +0530 Subject: [PATCH] soc: qcom: pil: Explicitly clear the subsystem loading address Explicitly clear the subsystem loading address in case of any memory failure. It will help to avoid any platform dependency. Change-Id: I3be8f6318d68f02c02e637fc34f4a868e9fafa45 Signed-off-by: Gaurav Kohli --- drivers/soc/qcom/peripheral-loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/qcom/peripheral-loader.c b/drivers/soc/qcom/peripheral-loader.c index c252fa9d1a96..6e5ddc4a3a7d 100644 --- a/drivers/soc/qcom/peripheral-loader.c +++ b/drivers/soc/qcom/peripheral-loader.c @@ -465,6 +465,8 @@ static int pil_alloc_region(struct pil_priv *priv, phys_addr_t min_addr, if (region == NULL) { pil_err(priv->desc, "Failed to allocate relocatable region of size %zx\n", size); + priv->region_start = 0; + priv->region_end = 0; return -ENOMEM; }