summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2012-08-16 07:55:09 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2012-08-16 07:55:09 +0000
commit6be2584ce9d1970292f06b266bc189d77acf04e7 (patch)
tree42d8f46fbd43cbf43322c3199d593f59bad32a3b
parent12bec4de77e834ac4f46ed74d88cebb3a2eb2dd5 (diff)
mfii_exec_done clears ccb_cookie, so mfii_exec should test that, not
ccb_done.
-rw-r--r--sys/dev/pci/mfii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 7900eb51ea0..5a1c57e284b 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.5 2012/08/16 04:41:49 dlg Exp $ */
+/* $OpenBSD: mfii.c,v 1.6 2012/08/16 07:55:08 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -796,7 +796,7 @@ mfii_exec(struct mfii_softc *sc, struct mfii_ccb *ccb)
ccb->ccb_done = mfii_exec_done;
mtx_enter(&m);
- while (ccb->ccb_done != NULL)
+ while (ccb->ccb_cookie != NULL)
msleep(ccb, &m, PRIBIO, "mfiiexec", 0);
mtx_leave(&m);