summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2006-06-10 17:50:33 +0000
committermarco <marco@openbsd.org>2006-06-10 17:50:33 +0000
commit4ea62cdd924239b221cdc4ec934dd78fb5e627c5 (patch)
tree23659e11bfef8bcbc860fa9c2132593e2fc3a6e2
parentANSIfy, KNF (diff)
downloadwireguard-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.c4
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));