[syslinux:master] ACPI: Fixing SSDT detection

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Sun Feb 6 14:07:33 PST 2011


Commit-ID:  fa047d0130b92c5088e186add7db57e94bab0371
Gitweb:     http://syslinux.zytor.com/commit/fa047d0130b92c5088e186add7db57e94bab0371
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Tue, 25 Jan 2011 22:13:06 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Tue, 25 Jan 2011 22:13:06 +0100

ACPI: Fixing SSDT detection

This test error was crashing the program.


---
 com32/gpllib/acpi/xsdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/gpllib/acpi/xsdt.c b/com32/gpllib/acpi/xsdt.c
index d563593..3e1b5ab 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;
 



More information about the Syslinux-commits mailing list