summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qwx.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2024-02-15 16:29:46 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2024-02-15 16:29:46 +0000
commite519b0329ed0404a7b874f5cd349996a66ab1799 (patch)
tree953d668c56b6ead499d6ae1eb7fcf95cd119348d /sys/dev/ic/qwx.c
parentf8f3b9bdf44570f5feb3405d35f6d0523d0b898d (diff)
fix wrong tsleep waiting address in qwx_qmi_mem_seg_send()
Fixes spurious "qwx0: failed to send qmi memory segments: -1" error with associated lag during 'ifconfig qwx0 down up'
Diffstat (limited to 'sys/dev/ic/qwx.c')
-rw-r--r--sys/dev/ic/qwx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c
index 9f9d81afd1f..80a8e4786b1 100644
--- a/sys/dev/ic/qwx.c
+++ b/sys/dev/ic/qwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qwx.c,v 1.39 2024/02/15 15:53:51 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.40 2024/02/15 16:29:45 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
@@ -7742,7 +7742,7 @@ qwx_qmi_mem_seg_send(struct qwx_softc *sc)
sc->fwmem_ready = 0;
while (sc->sc_req_mem_ind == NULL) {
- ret = tsleep_nsec(&sc->qmi_resp, 0, "qwxfwmem",
+ ret = tsleep_nsec(&sc->sc_req_mem_ind, 0, "qwxfwmem",
SEC_TO_NSEC(10));
if (ret) {
printf("%s: fw memory request timeout\n",