mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] bootm: release tee_res
@ 2019-09-12  7:13 Sascha Hauer
  2019-09-12  7:47 ` Rouven Czerwinski
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2019-09-12  7:13 UTC (permalink / raw)
  To: Barebox List

When a tee_res has been acquired it must be released when bootm returns
(for dryrun)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/bootm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/bootm.c b/common/bootm.c
index d7232f6afa..b50b76ed6f 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -682,6 +682,8 @@ err_out:
 		release_sdram_region(data->initrd_res);
 	if (data->oftree_res)
 		release_sdram_region(data->oftree_res);
+	if (data->tee_res)
+		release_sdram_region(data->tee_res);
 	if (data->initrd && data->initrd != data->os)
 		uimage_close(data->initrd);
 	if (data->os)
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] bootm: release tee_res
  2019-09-12  7:13 [PATCH] bootm: release tee_res Sascha Hauer
@ 2019-09-12  7:47 ` Rouven Czerwinski
  0 siblings, 0 replies; 2+ messages in thread
From: Rouven Czerwinski @ 2019-09-12  7:47 UTC (permalink / raw)
  To: Sascha Hauer, Barebox List

On Thu, 2019-09-12 at 09:13 +0200, Sascha Hauer wrote:
> When a tee_res has been acquired it must be released when bootm
> returns
> (for dryrun)
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  common/bootm.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/common/bootm.c b/common/bootm.c
> index d7232f6afa..b50b76ed6f 100644
> --- a/common/bootm.c
> +++ b/common/bootm.c
> @@ -682,6 +682,8 @@ err_out:
>  		release_sdram_region(data->initrd_res);
>  	if (data->oftree_res)
>  		release_sdram_region(data->oftree_res);
> +	if (data->tee_res)
> +		release_sdram_region(data->tee_res);
>  	if (data->initrd && data->initrd != data->os)
>  		uimage_close(data->initrd);
>  	if (data->os)

Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

Regards,
Rouven Czerwinski


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-09-12  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12  7:13 [PATCH] bootm: release tee_res Sascha Hauer
2019-09-12  7:47 ` Rouven Czerwinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox