From: Isaku Yamahata Date: Mon, 7 Jul 2008 01:54:16 +0000 (+0900) Subject: [IA64] fix serial console detection issue caused by cfbc535ebf6f X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14190 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d90282c1ad820b000dc334ede975ec66b074dfc;p=xen.git [IA64] fix serial console detection issue caused by cfbc535ebf6f This patch fixes serial console detection failure caused by the changeset cfbc535ebf6f. The changeset changed struct efi's members value from xen virtual address to physical address and from NULL to EFI_INVALID_TABLE_ADDR for non existing table. One check was missed. Signed-off-by: Isaku Yamahata --- diff --git a/xen/arch/ia64/linux-xen/setup.c b/xen/arch/ia64/linux-xen/setup.c index 32067f56d7..822d5fb680 100644 --- a/xen/arch/ia64/linux-xen/setup.c +++ b/xen/arch/ia64/linux-xen/setup.c @@ -362,7 +362,7 @@ acpi_oem_console_setup(void) int i; /* Don't duplicate setup if an HCDP table is present */ - if (efi.hcdp) + if (efi.hcdp != EFI_INVALID_TABLE_ADDR) return -ENODEV; /* Manually walk firmware provided tables to get to the XSDT. */