aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/acpi/xsdt.c
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-25 22:13:06 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-25 22:13:06 +0100
commitfa047d0130b92c5088e186add7db57e94bab0371 (patch)
tree92bfc4369a1b436b839724c322a249cd3af0d2e3 /com32/gpllib/acpi/xsdt.c
parente4d3b492407c60678e7a39fc006de44cfb1b57d5 (diff)
downloadsyslinux-fa047d0130b92c5088e186add7db57e94bab0371.tar.gz
syslinux-fa047d0130b92c5088e186add7db57e94bab0371.tar.xz
syslinux-fa047d0130b92c5088e186add7db57e94bab0371.zip
ACPI: Fixing SSDT detection
This test error was crashing the program.
Diffstat (limited to 'com32/gpllib/acpi/xsdt.c')
-rw-r--r--com32/gpllib/acpi/xsdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/acpi/xsdt.c b/com32/gpllib/acpi/xsdt.c
index d563593c..3e1b5abe 100644
--- a/com32/gpllib/acpi/xsdt.c
+++ b/com32/gpllib/acpi/xsdt.c
@@ -122,7 +122,7 @@ int parse_xsdt(s_acpi * acpi)
parse_dsdt(d);
/* PSDT have to be considered as SSDT. Intel ACPI Spec @ 5.2.11.3 */
} else if ((memcmp(adh.signature, SSDT, sizeof(SSDT) - 1) == 0)
- || (memcmp(adh.signature, PSDT, sizeof(PSDT) - 1))) {
+ || (memcmp(adh.signature, PSDT, sizeof(PSDT) - 1) == 0)) {
if ((acpi->ssdt_count >= MAX_SSDT - 1))
break;