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

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)