summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qwx.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2024-02-08 11:16:50 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2024-02-08 11:16:50 +0000
commit62d0ad5cf852ec470dfcb3adc59f4f7ae4454c3c (patch)
tree81b19a9c1acf19d24492744ba171a5480d63d7e6 /sys/dev/ic/qwx.c
parent42ad557625779621d0ae06ef8b7bf46a0242ffed (diff)
fix use of uninitialized variable m in qwx_dp_rx_reap_mon_status_ring()
Found by jsg@
Diffstat (limited to 'sys/dev/ic/qwx.c')
-rw-r--r--sys/dev/ic/qwx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c
index 6d4527720cf..4034a7ca719 100644
--- a/sys/dev/ic/qwx.c
+++ b/sys/dev/ic/qwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qwx.c,v 1.21 2024/02/08 11:13:01 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.22 2024/02/08 11:16:49 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
@@ -15498,9 +15498,9 @@ qwx_dp_rx_reap_mon_status_ring(struct qwx_softc *sc, int mac_id,
}
bus_dmamap_sync(sc->sc_dmat, rx_data->map, 0,
- m->m_pkthdr.len, BUS_DMASYNC_POSTREAD);
+ rx_data->m->m_pkthdr.len, BUS_DMASYNC_POSTREAD);
- tlv = mtod(m, struct hal_tlv_hdr *);
+ tlv = mtod(rx_data->m, struct hal_tlv_hdr *);
if (FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl) !=
HAL_RX_STATUS_BUFFER_DONE) {
printf("%s: mon status DONE not set %lx, "