check return value of ath_tx_dmasetup
Noticed by: yongari
This commit is contained in:
parent
a07fb7be3b
commit
05680ab622
@ -3561,6 +3561,8 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf
|
||||
* also calculates the number of descriptors we need.
|
||||
*/
|
||||
error = ath_tx_dmasetup(sc, bf, m0);
|
||||
if (error != 0)
|
||||
return error;
|
||||
bf->bf_node = ni; /* NB: held reference */
|
||||
m0 = bf->bf_m; /* NB: may have changed */
|
||||
wh = mtod(m0, struct ieee80211_frame *);
|
||||
|
Loading…
Reference in New Issue
Block a user