diff mbox

[U-Boot,1/1] arm: spear: do not return random value from stack

Message ID 20170730180938.8417-1-xypron.glpk@gmx.de
State Accepted
Commit 9730bcdc2f6c237fde66b7d81681e380ef0bdedf
Delegated to: Tom Rini
Headers show

Commit Message

Heinrich Schuchardt July 30, 2017, 6:09 p.m. UTC
If the NOR device is not available do not return
a random value from the stack.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 arch/arm/cpu/arm926ejs/spear/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Aug. 14, 2017, 12:07 a.m. UTC | #1
On Sun, Jul 30, 2017 at 08:09:38PM +0200, xypron.glpk@gmx.de wrote:

> If the NOR device is not available do not return
> a random value from the stack.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/arm926ejs/spear/spl.c b/arch/arm/cpu/arm926ejs/spear/spl.c
index a60f5838de..ba1e559157 100644
--- a/arch/arm/cpu/arm926ejs/spear/spl.c
+++ b/arch/arm/cpu/arm926ejs/spear/spl.c
@@ -222,7 +222,7 @@  static void snor_init(void)
 
 u32 spl_boot_device(void)
 {
-	u32 mode;
+	u32 mode = 0;
 
 	/* Currently only SNOR is supported as the only */
 	if (snor_boot_selected()) {