This was a warning flagged by the compiler, that loadaddr
may be used uninitilised. I'm not sure if this happens in practice,
but it is possible, if the seg type is NBI_SEG_NEGATIVE, or
some other undefined value.

It seems best to print a warning and skip to the next segment in
this case. But I'm not sure if this is correct.

Signed-Off-By: Simon Horman <[EMAIL PROTECTED]>

Index: kexec-tools-build-unstable/kexec/arch/i386/kexec-nbi.c
===================================================================
--- kexec-tools-build-unstable.orig/kexec/arch/i386/kexec-nbi.c 2006-09-22 
17:17:33.000000000 +0900
+++ kexec-tools-build-unstable/kexec/arch/i386/kexec-nbi.c      2006-09-22 
17:20:52.000000000 +0900
@@ -217,7 +217,7 @@
                        loadaddr = last0 - seg.loadaddr;
                }
                else {
-                       printf("warning: unandled segment of type %0x\n",
+                       printf("warning: unhandled segment of type %0x\n",
                                seg.flags & NBI_SEG);
                        continue;
                }
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to