aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch
blob: be1301df687c0ed7ca3496a76add40ec280f1a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -901,7 +901,7 @@ static int my_exec(void)
 	if (xen_present())
 		xen_kexec_exec();
 	else
-		reboot(LINUX_REBOOT_CMD_KEXEC);
+		reboot(LINUX_REBOOT_CMD_KEXEC, NULL);
 	/* I have failed if I make it here */
 	fprintf(stderr, "kexec failed: %s\n", 
 		strerror(errno));