summaryrefslogtreecommitdiff
path: root/sys/dev/ic/twe.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-11-08 20:44:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-11-08 20:44:57 +0000
commite1ae7ab570bdcac7b9efd981786a70ce93399a57 (patch)
tree59d24b2fa2c819037383089ccb5193733d0589df /sys/dev/ic/twe.c
parent02f3e184c7a2821566b49df2a5fdf48a9debd5ef (diff)
oops, oops w/ no configured units
Diffstat (limited to 'sys/dev/ic/twe.c')
-rw-r--r--sys/dev/ic/twe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index ed472224d1f..a10cbc03a8f 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.4 2000/11/07 20:15:53 mickey Exp $ */
+/* $OpenBSD: twe.c,v 1.5 2000/11/08 20:44:56 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff. All rights reserved.
@@ -367,6 +367,9 @@ twe_attach(sc)
sc->sc_hdr[i].hd_heads));
}
+ if (!nunits)
+ nunits++;
+
/* TODO: fetch & print cache params? */
sc->sc_link.adapter_softc = sc;