soc: qcom: Clear the memory before freeing it up
It is a case of write after free, this is causing page allocation failure due to corruption. This is due to freeing up of segments allocated for venus subsystem, when venus fw loading fail midway. Change-Id: I0019a05b1d1336dcf361264607597430e5f1625a Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
This commit is contained in:
parent
c01ba1a5f9
commit
b6bd6d1a3c
1 changed files with 2 additions and 2 deletions
|
@ -917,13 +917,13 @@ out:
|
|||
priv->region_start),
|
||||
VMID_HLOS);
|
||||
}
|
||||
if (desc->clear_fw_region && priv->region_start)
|
||||
pil_clear_segment(desc);
|
||||
dma_free_attrs(desc->dev, priv->region_size,
|
||||
priv->region, priv->region_start,
|
||||
&desc->attrs);
|
||||
priv->region = NULL;
|
||||
}
|
||||
if (desc->clear_fw_region && priv->region_start)
|
||||
pil_clear_segment(desc);
|
||||
pil_release_mmap(desc);
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue