summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-10-20 19:19:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-10-20 19:19:21 +0000
commit6890ab396ffd97f9ea78fa443dd7fe49e4f09c71 (patch)
tree242d3fb060c903202b59c143348594e1d1dcd81d /sys/dev/pci
parent9fe3c369f8f40302d6d0f56dd4f010f8fc5eeffd (diff)
Be sure to return if the pci interrupt can't be mapped, instead of falling
through the remainder of the attachment logic.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/ciss_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ciss_pci.c b/sys/dev/pci/ciss_pci.c
index 1de303833bc..4d1bce7fb2c 100644
--- a/sys/dev/pci/ciss_pci.c
+++ b/sys/dev/pci/ciss_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss_pci.c,v 1.19 2014/09/13 05:17:48 jsg Exp $ */
+/* $OpenBSD: ciss_pci.c,v 1.20 2014/10/20 19:19:20 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -201,6 +201,7 @@ ciss_pci_attach(struct device *parent, struct device *self, void *aux)
bus_space_unmap(sc->iot, sc->ioh, size);
if (cfg_bar != CISS_BAR)
bus_space_unmap(sc->iot, sc->cfg_ioh, cfgsz);
+ return;
}
printf(": %s\n%s", intrstr, sc->sc_dev.dv_xname);