diff options
author | 2000-11-08 20:44:56 +0000 | |
---|---|---|
committer | 2000-11-08 20:44:56 +0000 | |
commit | 472456101f856e43ddf10ef7f41b7a1e5149a939 (patch) | |
tree | da92cf0e2e77e4721564f9cd11b06f6715c29b44 | |
parent | put infnan in there, even though it is depricated (diff) | |
download | wireguard-openbsd-472456101f856e43ddf10ef7f41b7a1e5149a939.tar.xz wireguard-openbsd-472456101f856e43ddf10ef7f41b7a1e5149a939.zip |
oops, oops w/ no configured units
-rw-r--r-- | sys/dev/ic/twe.c | 5 |
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; |