summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-05-21 04:07:11 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-05-21 04:07:11 +0000
commit11b8a524ed4df310253bd4a5f7277a51b74946d4 (patch)
tree436c7fa2fa697631bec4768f049e5a80cdef1bac /sys/dev
parent42c54fb7215d930e3e5c9aa64c9d37b181c6833b (diff)
Oops, helps to use the right structure field.
Use actual nr of physical disks present.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index ebde1d2b7cd..5241ddea689 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.42 2006/05/21 04:03:06 marco Exp $ */
+/* $OpenBSD: mfi.c,v 1.43 2006/05/21 04:07:10 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -1158,7 +1158,7 @@ mfi_ioctl_inq(struct mfi_softc *sc, struct bioc_inq *bi)
/* XXX this is static and needs to become dynamic */
strlcpy(bi->bi_dev, DEVNAME(sc), sizeof(bi->bi_dev));
bi->bi_novol = sc->sc_info.mci_lds_present;
- bi->bi_nodisk = sc->sc_info.mci_pd_present;
+ bi->bi_nodisk = sc->sc_info.mci_pd_disks_present;
return (0);
}