diff options
author | 2010-01-03 07:26:44 +0000 | |
---|---|---|
committer | 2010-01-03 07:26:44 +0000 | |
commit | 2b5df6e7b2df34086d78a93dd30cc22223c619ae (patch) | |
tree | c9ff08606a2e7617e6db6701512ce6b2ee05a684 | |
parent | get rid of the last internal user of splbio. waiting for the completion of (diff) | |
download | wireguard-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.c | 3 |
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 */ |