From e1ae7ab570bdcac7b9efd981786a70ce93399a57 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 8 Nov 2000 20:44:57 +0000 Subject: oops, oops w/ no configured units --- sys/dev/ic/twe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3