Project : madwifi
Revision : 2910
Author : mtaylor (Michael Taylor)
Date : 2007-11-22 01:49:31 +0100 (Thu, 22 Nov 2007)
Log Message :
Restore error message on alloc_skb failure
Affected Files:
* madwifi/trunk/ath/if_ath.c updated
Modified: madwifi/trunk/ath/if_ath.c
===================================================================
--- madwifi/trunk/ath/if_ath.c 2007-11-22 00:45:27 UTC (rev 2909)
+++ madwifi/trunk/ath/if_ath.c 2007-11-22 00:49:31 UTC (rev 2910)
@@ -10448,10 +10448,11 @@
{
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();
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|