diff options
author | 2006-12-11 13:20:29 +0000 | |
---|---|---|
committer | 2006-12-11 13:20:29 +0000 | |
commit | 87c8993280285db366541827eb2345daffb929af (patch) | |
tree | 8d231ad1795db6decc7904d39ac64a280dc26972 | |
parent | remove the argument to all the port registers that say which port you want (diff) | |
download | wireguard-openbsd-87c8993280285db366541827eb2345daffb929af.tar.xz wireguard-openbsd-87c8993280285db366541827eb2345daffb929af.zip |
oops, we want to return when everything goes well in ahci_attach, rather
than fall through to the bits that do cleanup when an error occurs.
-rw-r--r-- | sys/dev/pci/ahci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index c65371dad75..efdb7893dab 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.19 2006/12/11 13:17:57 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.20 2006/12/11 13:20:29 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -266,6 +266,8 @@ ahci_attach(struct device *parent, struct device *self, void *aux) } #endif + return; + unmap: ahci_unmap_regs(sc, pa); } |