From: mentor Date: Thu, 17 Jan 2008 23:22:51 +0000 (+0000) Subject: Do not try and find a device from a non-existent SKB X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=bd7108a8534d9b0b3d586168d7ea0ea28a01127d;p=madwifi%2F.git Do not try and find a device from a non-existent SKB git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3199 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/net80211/ieee80211_skb.c b/net80211/ieee80211_skb.c index c476247..5b0c787 100644 --- a/net80211/ieee80211_skb.c +++ b/net80211/ieee80211_skb.c @@ -131,7 +131,7 @@ static void skb_print_message( #else printk("%s: %s%s:%d %s\n", #endif - DEV_NAME(skb->dev), + ((skb != NULL) ? DEV_NAME(skb->dev) : "none"), skb_count, #ifdef IEEE80211_DEBUG_REFCNT func1, line1,