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 <gkohli@codeaurora.org>
This commit is contained in:
Gaurav Kohli 2017-03-25 17:36:30 +05:30 committed by Gerrit - the friendly Code Review server
parent ba53c4518c
commit c59edf21d4

View file

@ -465,6 +465,8 @@ static int pil_alloc_region(struct pil_priv *priv, phys_addr_t min_addr,
if (region == NULL) { if (region == NULL) {
pil_err(priv->desc, "Failed to allocate relocatable region of size %zx\n", pil_err(priv->desc, "Failed to allocate relocatable region of size %zx\n",
size); size);
priv->region_start = 0;
priv->region_end = 0;
return -ENOMEM; return -ENOMEM;
} }