iprowifi4965: Add NULL check for data->ni and data->m.

Workaround for #19289.
This commit is contained in:
Augustin Cavalier
2024-12-16 16:35:11 -05:00
parent c5cc07a188
commit 47dbff983a
@@ -3650,6 +3650,11 @@ iwn_tx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, int rtsfailcnt,
return;
}
#ifdef __HAIKU__
if (!data->ni || !data->m)
return;
#endif
KASSERT(data->ni != NULL, ("no node"));
KASSERT(data->m != NULL, ("no mbuf"));