diff options
author | 2006-06-10 17:50:33 +0000 | |
---|---|---|
committer | 2006-06-10 17:50:33 +0000 | |
commit | 4ea62cdd924239b221cdc4ec934dd78fb5e627c5 (patch) | |
tree | 23659e11bfef8bcbc860fa9c2132593e2fc3a6e2 | |
parent | ANSIfy, KNF (diff) | |
download | wireguard-openbsd-4ea62cdd924239b221cdc4ec934dd78fb5e627c5.tar.xz wireguard-openbsd-4ea62cdd924239b221cdc4ec934dd78fb5e627c5.zip |
Make id in mpi_complete an unused value instead of random stack garbage.
This was causing the "empty portfacts" issue since the IOC wasn't complete
yet with the request however since the id would match the requested id the
timeout was a terminal condition.
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 96e71b48d71..227790ed1f2 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.30 2006/06/10 14:05:29 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.31 2006/06/10 17:50:33 marco Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -470,7 +470,7 @@ mpi_complete(struct mpi_softc *sc, struct mpi_ccb *nccb, int timeout) struct mpi_msg_reply *reply = NULL; u_int32_t reply_dva; char *reply_addr; - u_int32_t reg, id; + u_int32_t reg, id = 0xffffffff; DNPRINTF(MPI_D_INTR, "%s: mpi_complete\n", DEVNAME(sc)); |