diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-03 07:26:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-03 07:26:45 +0000 |
commit | fea5fe90e3eb7bd5f6c85dbb022fc84e20dce6b3 (patch) | |
tree | e8d61ad3b54017754a816002273a82e05efbfe61 /sys | |
parent | 9e536f032611a6aebc8085dd0a1c718b75902be7 (diff) |
oops, forgot to set the ccb_cookie in mpi_wait. mpi_wait_done would fault
when it used the uninitialized cookie.
Diffstat (limited to 'sys')
-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 */ |