summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/isa/wbsio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/isa/wbsio.c b/sys/dev/isa/wbsio.c
index 1690ba8e63b..a987d0c9f1c 100644
--- a/sys/dev/isa/wbsio.c
+++ b/sys/dev/isa/wbsio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wbsio.c,v 1.1 2008/02/17 15:04:08 kettenis Exp $ */
+/* $OpenBSD: wbsio.c,v 1.2 2008/03/31 17:56:41 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
*
@@ -207,6 +207,9 @@ wbsio_attach(struct device *parent, struct device *self, void *aux)
/* Escape from configuration mode */
wbsio_conf_disable(sc->sc_iot, sc->sc_ioh);
+ if (iobase == 0)
+ return;
+
nia = *ia;
nia.ia_iobase = iobase;
config_found(self, &nia, wbsio_print);