summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2010-01-03 07:26:44 +0000
committerdlg <dlg@openbsd.org>2010-01-03 07:26:44 +0000
commit2b5df6e7b2df34086d78a93dd30cc22223c619ae (patch)
treec9ff08606a2e7617e6db6701512ce6b2ee05a684
parentget rid of the last internal user of splbio. waiting for the completion of (diff)
downloadwireguard-openbsd-2b5df6e7b2df34086d78a93dd30cc22223c619ae.tar.xz
wireguard-openbsd-2b5df6e7b2df34086d78a93dd30cc22223c619ae.zip
oops, forgot to set the ccb_cookie in mpi_wait. mpi_wait_done would fault
when it used the uninitialized cookie.
-rw-r--r--sys/dev/ic/mpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 8f5f5341eed..9f70be3b3f2 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.129 2010/01/03 07:05:43 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.130 2010/01/03 07:26:44 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -1182,6 +1182,7 @@ mpi_wait(struct mpi_softc *sc, struct mpi_ccb *ccb)
done = ccb->ccb_done;
ccb->ccb_done = mpi_wait_done;
+ ccb->ccb_cookie = &cookie;
/* XXX this will wait forever for the ccb to complete */