mcelog/0001-Continue-without-dmi-when-no-SMBIOS-or-SMBIOS-0x0-in.patch
Thomas Renninger b407b97696 Accepting request 239581 from home:juwolf:branches:Base:System
Added: 0001-Continue-without-dmi-when-no-SMBIOS-or-SMBIOS-0x0-in.patch
Continue without dmi when no SMBIOS or SMBIOS=0x0 in /sys/firmware/efi/systab, bnc#829862

OBS-URL: https://build.opensuse.org/request/show/239581
OBS-URL: https://build.opensuse.org/package/show/Base:System/mcelog?expand=0&rev=37
2014-07-04 14:20:51 +00:00

40 lines
947 B
Diff

From c55a40ab8a2bef21c2cf00ffca1a1f4883192ca9 Mon Sep 17 00:00:00 2001
From: Julian Wolf <juwolf@suse.com>
Date: Fri, 4 Jul 2014 13:04:52 +0200
Subject: [PATCH] Continue without dmi when no SMBIOS or SMBIOS=0x0 in
/sys/firmware/efi/systab, bnc#829862
---
dmi.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dmi.c b/dmi.c
index 373837e..402459a 100644
--- a/dmi.c
+++ b/dmi.c
@@ -174,8 +174,10 @@ check_symbol:
if (fclose(efi_systab) != 0)
perror(filename);
- if (!ret)
- Eprintf("%s: SMBIOS entry point missing", filename);
+ if (!ret || !*address){
+ Lprintf("No valid SMBIOS entry point: Continue without DMI decoding");
+ return 0;
+ }
if (verbose)
printf("%s: SMBIOS entry point at 0x%08lx\n", filename,
@@ -224,6 +226,8 @@ int opendmi(void)
}
a = (struct anchor*)((char*)abase + (entry_point_addr - addr_start));
goto fill_entries;
+ }else{
+ return -1;
}
legacy:
--
1.8.1.4