summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-01-18 04:46:05 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-01-18 04:46:05 +0000
commite20760c1c6007ab32ca9993752c7832ebdea4096 (patch)
tree4c5c4c3146500752c14a37513ceb8ddf598dbd1b /sys/dev
parentd350e422c5cfeedfb2669b314df04831afb758a2 (diff)
Fix false positives of ipmi on older machines.
ok jordan@ tested by others
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ipmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 2456bb3e51c..96aa9863de9 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.31 2006/01/05 21:28:29 marco Exp $ */
+/* $OpenBSD: ipmi.c,v 1.32 2006/01/18 04:46:04 marco Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -887,7 +887,7 @@ scan_smbios(u_int8_t mtype, void (*smcb) (void *base, void *arg), void *arg)
romhdr = (struct smbiosanchor *)scan_sig(0xF0000, 0xFFFFF, 16, 4,
"_SM_");
if (romhdr == NULL)
- return (-1);
+ return (0);
dbg_printf(1, "SMBIOS Version %d.%d at 0x%lx, %d entries\n",
romhdr->smr_smbios_majver, romhdr->smr_smbios_minver,
@@ -898,7 +898,7 @@ scan_smbios(u_int8_t mtype, void (*smcb) (void *base, void *arg), void *arg)
offset = smbios_map(romhdr->smr_table_address,
romhdr->smr_count * romhdr->smr_maxsize, &smm);
if (offset == NULL)
- return (-1);
+ return (0);
for (num = 0; num < romhdr->smr_count; num++) {
smhdr = (struct smhdr *)offset;