mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX7/8M: Make sure the output parameter is always assigned
@ 2022-06-10  7:05 Uwe Kleine-König
  2022-06-10  7:28 ` Jürgen Borleis
  2022-06-10  7:51 ` Sascha Hauer
  0 siblings, 2 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2022-06-10  7:05 UTC (permalink / raw)
  To: barebox; +Cc: Jürgen Borleis

Callers of *_get_boot_source (e.g. start_atf() of
nxp-imx8mm-evk or protonic-imx8m) expect src to hold the bootsource
after return. So assign a value reliably.

Fixes: ea55770308c0 ("ARM: i.MX: Add i.MX7 base architecture support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-imx/boot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
index 63afdf1ef4ed..652e2869f2d7 100644
--- a/arch/arm/mach-imx/boot.c
+++ b/arch/arm/mach-imx/boot.c
@@ -526,6 +526,7 @@ static void __imx7_get_boot_source(enum bootsource *src, int *instance,
 		*src = BOOTSOURCE_SERIAL;
 		break;
 	default:
+		*src = BOOTSOURCE_UNKNOWN;
 		break;
 	}
 }

base-commit: 6a3f9ed1f5c55957b2ed4f460955281539e8e785
-- 
2.30.2


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

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

end of thread, other threads:[~2022-06-10  8:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  7:05 [PATCH] ARM: i.MX7/8M: Make sure the output parameter is always assigned Uwe Kleine-König
2022-06-10  7:28 ` Jürgen Borleis
2022-06-10  7:44   ` Sascha Hauer
2022-06-10  8:42   ` Uwe Kleine-König
2022-06-10  8:49     ` Sascha Hauer
2022-06-10  7:51 ` Sascha Hauer

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