check return value of ath_tx_dmasetup

Noticed by:	yongari
This commit is contained in:
Sam Leffler 2006-08-08 16:42:01 +00:00
parent a07fb7be3b
commit 05680ab622

View File

@ -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 *);