summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-10-20 19:19:20 +0000
committermiod <miod@openbsd.org>2014-10-20 19:19:20 +0000
commiteae72b51010ca2b847de88c47e84ffc5971116f2 (patch)
tree6a793b32ce92d432b6d13cea837967d8184634cb /sys
parentimprove documentation of .Fa, .Va, and .Vt; (diff)
downloadwireguard-openbsd-eae72b51010ca2b847de88c47e84ffc5971116f2.tar.xz
wireguard-openbsd-eae72b51010ca2b847de88c47e84ffc5971116f2.zip
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')
-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);