patch-2.4.23 linux-2.4.23/arch/ppc64/boot/addRamDisk.c
Next file: linux-2.4.23/arch/ppc64/config.in
Previous file: linux-2.4.23/arch/ppc/platforms/ocotea.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/ppc64/boot/addRamDisk.c
- Orig date:
2003-06-13 07:51:31.000000000 -0700
diff -urN linux-2.4.22/arch/ppc64/boot/addRamDisk.c linux-2.4.23/arch/ppc64/boot/addRamDisk.c
@@ -259,7 +259,7 @@
death("Could not read hvReleaseData\n", outputVmlinux, argv[4]);
}
/* Check hvReleaseData sanity */
- if (memcmp(inbuf, &eyeCatcher, 4) != 0) {
+ if (ntohl(*(u_int32_t *)inbuf) != eyeCatcher) {
death("hvReleaseData is invalid\n", outputVmlinux, argv[4]);
}
/* Get the naca pointer */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)