Skip to contentSkip to conversation

Change flag check in lib_arm/bootm.c::do_bootm_linux() to allow booting.

PATCH New Peter Pearse 1 participant 1 message Nov 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change flag check in lib_arm/bootm.c::do_bootm_linux() to allow booting.

(flag != 0) || (flag != BOOTM_STATE_OS_GO) allows nothing past.

---

 lib_arm/bootm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib_arm/bootm.c +1 -1
index 8e264ce..7dbde7d 100644
@@ -67,7 +67,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 	char *commandline = getenv ("bootargs");
 #endif
 
-	if ((flag != 0) || (flag != BOOTM_STATE_OS_GO))
+	if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
 		return 1;
 
 	theKernel = (void (*)(int, int, uint))images->ep;
Signature · 1 line
1.5.4.3