From 051988bb87ed71cd8e8824553121453deef82471 Mon Sep 17 00:00:00 2001 From: okuji Date: Mon, 5 Jun 2006 19:59:33 +0000 Subject: [PATCH] 2006-06-05 Yoshinori K. Okuji * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional of checking LINUX_MEM_SIZE was reverse. Reported by Jesus Velazquez . --- ChangeLog | 6 ++++++ loader/i386/pc/linux.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 763ccf2c4..f190019e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-05 Yoshinori K. Okuji + + * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional + of checking LINUX_MEM_SIZE was reverse. Reported by Jesus + Velazquez . + 2006-06-05 Yoshinori K. Okuji Count partitions from 1 instead of 0 in the string representation diff --git a/loader/i386/pc/linux.c b/loader/i386/pc/linux.c index 73a9662c9..c4049d40b 100644 --- a/loader/i386/pc/linux.c +++ b/loader/i386/pc/linux.c @@ -326,7 +326,7 @@ grub_rescue_cmd_initrd (int argc, char *argv[]) else addr_max = GRUB_LINUX_INITRD_MAX_ADDRESS; - if (!linux_mem_size && linux_mem_size < addr_max) + if (linux_mem_size != 0 && linux_mem_size < addr_max) addr_max = linux_mem_size; /* Linux 2.3.xx has a bug in the memory range check, so avoid