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:
parent
ba53c4518c
commit
c59edf21d4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue