mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Avoid NULL deref.
Submitted by: gavin MFC after: 1 month
This commit is contained in:
parent
a31532b4ad
commit
4a67d9e8b1
1 changed files with 1 additions and 1 deletions
|
|
@ -3368,10 +3368,10 @@ _bwi_txeof(struct bwi_softc *sc, uint16_t tx_id, int acked, int data_txcnt)
|
|||
bus_dmamap_unload(sc->sc_buf_dtag, tb->tb_dmap);
|
||||
|
||||
ni = tb->tb_ni;
|
||||
vap = ni->ni_vap;
|
||||
if (tb->tb_ni != NULL) {
|
||||
const struct bwi_txbuf_hdr *hdr =
|
||||
mtod(tb->tb_mbuf, const struct bwi_txbuf_hdr *);
|
||||
vap = ni->ni_vap;
|
||||
|
||||
/* NB: update rate control only for unicast frames */
|
||||
if (hdr->txh_mac_ctrl & htole32(BWI_TXH_MAC_C_ACK)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue