[syslinux:firmware] efi: update the correct linux_header pointer for cmdline

syslinux-bot for Matt Fleming matt.fleming at intel.com
Mon Jul 8 09:30:08 PDT 2013


Commit-ID:  8c973d53817749fdeb10305242c75ffe2d72b385
Gitweb:     http://www.syslinux.org/commit/8c973d53817749fdeb10305242c75ffe2d72b385
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Sun, 7 Jul 2013 10:08:58 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Mon, 8 Jul 2013 15:54:12 +0100

efi: update the correct linux_header pointer for cmdline

We're updating the cmd_line_ptr field of the wrong linux_header, so the
command line isn't being passed to the kernel.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 efi/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efi/main.c b/efi/main.c
index cdd993d..19ab76a 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1089,7 +1089,7 @@ int efi_boot_linux(void *kernel_buf, size_t kernel_size,
 	if (!_cmdline)
 		goto bail;
 
-	hdr->cmd_line_ptr = (UINT32)(UINTN)_cmdline;
+	bhdr->cmd_line_ptr = (UINT32)(UINTN)_cmdline;
 
 	memset((char *)&bp->screen_info, 0x0, sizeof(bp->screen_info));
 


More information about the Syslinux-commits mailing list