فهرست منبع

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 <[email protected]>
nishant chaubey 2 سال پیش
والد
کامیت
4024c08023
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      dsp/adsprpc.c

+ 3 - 2
dsp/adsprpc.c

@@ -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};