summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-08-08 16:42:01 +0000
committersam <sam@FreeBSD.org>2006-08-08 16:42:01 +0000
commit5f3cfb10281a4a5f945178813e656149f8feeef0 (patch)
treecd686ba39fd760c468de5c772c9075a8dde8285b /sys/dev/ath
parent88be4120c6067cbc5b8d843be1321787b807a6dc (diff)
downloadFreeBSD-src-5f3cfb10281a4a5f945178813e656149f8feeef0.zip
FreeBSD-src-5f3cfb10281a4a5f945178813e656149f8feeef0.tar.gz
check return value of ath_tx_dmasetup
Noticed by: yongari
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 2aa3fcc..cd51f53 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -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 *);
OpenPOWER on IntegriCloud