Restore error message on alloc_skb failure

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2910 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2007-11-22 00:49:31 +00:00
parent 54d2029f21
commit 3edfc8a644

View File

@ -10448,10 +10448,11 @@ txcont_queue_packet(struct ieee80211com *ic, struct ath_txq* txq)
{ {
bf = ath_take_txbuf_locked(sc); bf = ath_take_txbuf_locked(sc);
skb = alloc_skb(datasz + sizeof(struct ieee80211_frame) + IEEE80211_CRC_LEN, GFP_ATOMIC); skb = alloc_skb(datasz + sizeof(struct ieee80211_frame) + IEEE80211_CRC_LEN, GFP_ATOMIC);
wh = (struct ieee80211_frame*)skb_put(skb, sizeof(struct ieee80211_frame));
if (NULL == skb) { if (NULL == skb) {
printk(KERN_ERR "%s: %s: alloc_skb returned null!\n", DEV_NAME(dev), __func__);
BUG(); BUG();
} }
wh = (struct ieee80211_frame*)skb_put(skb, sizeof(struct ieee80211_frame));
if (NULL == bf) { if (NULL == bf) {
printk(KERN_ERR "%s: %s: STAILQ_FIRST(&sc->sc_txbuf) returned null!\n", DEV_NAME(dev), __func__); printk(KERN_ERR "%s: %s: STAILQ_FIRST(&sc->sc_txbuf) returned null!\n", DEV_NAME(dev), __func__);
BUG(); BUG();