linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] optee: fix tee out of memory failure seen during kexec reboot
@ 2021-02-18 20:03 Dhananjay Phadke
  2021-02-22 12:45 ` Allen Pais
  0 siblings, 1 reply; 6+ messages in thread
From: Dhananjay Phadke @ 2021-02-18 20:03 UTC (permalink / raw)
  To: allen.lkml, jens.wiklander, zajec5
  Cc: linux-kernel, linux-mips, op-tee, bcm-kernel-feedback-list, apais,
	linux-arm-kernel

From: Allen Pais <allen.lkml@gmail.com>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-24 16:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-18 20:03 [PATCH 1/2] optee: fix tee out of memory failure seen during kexec reboot Dhananjay Phadke
2021-02-22 12:45 ` Allen Pais
2021-02-23  8:19   ` Jens Wiklander
2021-02-23 16:26     ` Allen Pais
2021-02-24  8:15       ` Jens Wiklander
2021-02-24 16:53         ` Allen Pais

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).