[coreboot-gerrit] Patch set updated for coreboot: f2e3a00 acpigen: Correctly handle root scope

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Sun Aug 31 21:15:33 CEST 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6799

-gerrit

commit f2e3a0008848daf75a5eae2a87c52a94b610cf14
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Sat Aug 30 20:44:37 2014 +0200

    acpigen: Correctly handle root scope
    
    Change-Id: I9b3c9109b01e348259e64e93a4397212216ab152
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/arch/x86/boot/acpigen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/arch/x86/boot/acpigen.c b/src/arch/x86/boot/acpigen.c
index ba3d2df..fadbb31 100644
--- a/src/arch/x86/boot/acpigen.c
+++ b/src/arch/x86/boot/acpigen.c
@@ -223,7 +223,10 @@ int acpigen_emit_namestring(const char *namepath) {
 		namepath++;
 	}
 
-	ASSERT(namepath[0] != '\0');
+	if(namepath[0] == '\0') {
+		len += acpigen_emit_byte('\0');
+		return len;
+	}
 
 	i = 0;
 	while (namepath[i] != '\0') {



More information about the coreboot-gerrit mailing list