mirror of https://github.com/proski/madwifi
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:
parent
54d2029f21
commit
3edfc8a644
|
@ -10448,10 +10448,11 @@ txcont_queue_packet(struct ieee80211com *ic, struct ath_txq* txq)
|
|||
{
|
||||
bf = ath_take_txbuf_locked(sc);
|
||||
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) {
|
||||
printk(KERN_ERR "%s: %s: alloc_skb returned null!\n", DEV_NAME(dev), __func__);
|
||||
BUG();
|
||||
}
|
||||
wh = (struct ieee80211_frame*)skb_put(skb, sizeof(struct ieee80211_frame));
|
||||
if (NULL == bf) {
|
||||
printk(KERN_ERR "%s: %s: STAILQ_FIRST(&sc->sc_txbuf) returned null!\n", DEV_NAME(dev), __func__);
|
||||
BUG();
|
||||
|
|
Loading…
Reference in New Issue