diff options
author | 2009-07-14 18:41:02 +0000 | |
---|---|---|
committer | 2009-07-14 18:41:02 +0000 | |
commit | 837721b9535c422aa597e8417615f080cdbe8655 (patch) | |
tree | 6021f73d25f92fb532580d980337f308b81947a8 | |
parent | Kill structs and ioctls that were never implemented. (diff) | |
download | wireguard-openbsd-837721b9535c422aa597e8417615f080cdbe8655.tar.xz wireguard-openbsd-837721b9535c422aa597e8417615f080cdbe8655.zip |
Silence ``invalid NVRAM header'' message if the NVRAM header is three zero
bytes (as encountered on sgi).
ok krw@ deraadt@
-rw-r--r-- | sys/dev/ic/isp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/isp.c b/sys/dev/ic/isp.c index 2d0f10fdd18..5aec34177b1 100644 --- a/sys/dev/ic/isp.c +++ b/sys/dev/ic/isp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp.c,v 1.46 2009/06/24 11:00:53 krw Exp $ */ +/* $OpenBSD: isp.c,v 1.47 2009/07/14 18:41:02 miod Exp $ */ /* $FreeBSD: src/sys/dev/isp/isp.c,v 1.150 2008/12/15 21:42:38 marius Exp $*/ /*- * Copyright (c) 1997-2007 by Matthew Jacob @@ -7396,7 +7396,10 @@ isp_read_nvram(struct ispsoftc *isp) if (nvram_data[0] != 'I' || nvram_data[1] != 'S' || nvram_data[2] != 'P') { if (isp->isp_bustype != ISP_BT_SBUS) { - isp_prt(isp, ISP_LOGWARN, "invalid NVRAM header"); + if (nvram_data[0] != 0 || nvram_data[1] != 0 || + nvram_data[2] != 0) + isp_prt(isp, ISP_LOGWARN, + "invalid NVRAM header"); isp_prt(isp, ISP_LOGDEBUG0, "%x %x %x", nvram_data[0], nvram_data[1], nvram_data[2]); } |