msm: adsprpc: cleanup ADSP rh memory during hibernation

During hibernation suspend, we pass null fl, allow
ADSP remoteheap memory cleanup in this case.

Change-Id: I42b80ded3955f9d5200cb77114a476a69f5353d5
Signed-off-by: nishant chaubey <quic_chaubey@quicinc.com>
Este commit está contenido en:
nishant chaubey
2023-02-17 11:13:43 +05:30
padre 4fef948448
commit 4024c08023

Ver fichero

@@ -4728,8 +4728,9 @@ static int fastrpc_mmap_remove_ssr(struct fastrpc_file *fl, int locked)
match = NULL;
spin_lock_irqsave(&me->hlock, irq_flags);
hlist_for_each_entry_safe(map, n, &me->maps, hn) {
if (map->servloc_name && fl &&
fl->servloc_name && !strcmp(map->servloc_name, fl->servloc_name)) {
/* In hibernation suspend case fl is NULL, check !fl to cleanup */
if (!fl || (fl && map->servloc_name && fl->servloc_name
&& !strcmp(map->servloc_name, fl->servloc_name))) {
match = map;
if (map->is_persistent && map->in_use) {
int destVM[1] = {VMID_HLOS};