diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-03-06 14:24:25 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-03-06 14:24:25 +0000 |
commit | 6f4558b0e7303aba18867deec62006e34dbc441a (patch) | |
tree | f71ab365e9e705c56b120b47726ea9e7b9ab5243 /sys/dev | |
parent | 86a0c6e118be7158f095bb3a1aa49ca948ce4377 (diff) |
Add missing splx in poll path.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/ahci.c | 6 |
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); |