diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-11 13:20:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-11 13:20:30 +0000 |
commit | 6a7bb2c07326f91cbb8a1c0874495dccf321b47c (patch) | |
tree | fa7a1894b6194e5938d5562362840b7fe2d0e3da /sys/dev | |
parent | 6f5ab398cd028973a0564e09d624c5642902971c (diff) |
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.
Diffstat (limited to 'sys/dev')
-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); } |