diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-01-18 04:46:05 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-01-18 04:46:05 +0000 |
commit | e20760c1c6007ab32ca9993752c7832ebdea4096 (patch) | |
tree | 4c5c4c3146500752c14a37513ceb8ddf598dbd1b /sys | |
parent | d350e422c5cfeedfb2669b314df04831afb758a2 (diff) |
Fix false positives of ipmi on older machines.
ok jordan@
tested by others
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ipmi.c | 6 |
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; |