Thread (6 messages) 6 messages, 3 authors, 2021-02-24
STALE1938d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 1/2] optee: fix tee out of memory failure seen during kexec reboot

From: Dhananjay Phadke <hidden>
Date: 2021-02-17 09:28:51
Also in: linux-mips, lkml, op-tee
Subsystem: op-tee driver, tee subsystem, the rest · Maintainers: Jens Wiklander, Linus Torvalds

From: Allen Pais <redacted>

On Wed, 17 Feb 2021 14:57:12 +0530, Allen Pais wrote:
-	/*
-	 * Ask OP-TEE to free all cached shared memory objects to decrease
-	 * reference counters and also avoid wild pointers in secure world
-	 * into the old shared memory range.
-	 */
-	optee_disable_shm_cache(optee);
+	if (shutdown) {
+		optee_disable_shm_cache(optee);
+	} else {
+		/*
+		 * Ask OP-TEE to free all cached shared memory
+		 * objects to decrease reference counters and
+		 * also avoid wild pointers in secure world
+		 * into the old shared memory range.
+		 */
+		optee_disable_shm_cache(optee);
 
Calling optee_disable_shm_cache() in both if and else. It could be
put in front of if().


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help