summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ahci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index 73a217ffa24..22ba91dfe75 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.75 2007/03/06 14:15:51 pascoe Exp $ */
+/* $OpenBSD: ahci.c,v 1.76 2007/03/06 14:24:24 pascoe Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -1232,8 +1232,10 @@ ahci_poll(struct ahci_ccb *ccb, int timeout)
s = splbio();
ahci_start(ccb);
do {
- if (ahci_port_intr(ap, 1 << ccb->ccb_slot))
+ if (ahci_port_intr(ap, 1 << ccb->ccb_slot)) {
+ splx(s);
return (0);
+ }
delay(1000);
} while (--timeout > 0);