Do not try and find a device from a non-existent SKB
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jan 2008 23:22:51 +0000 (23:22 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jan 2008 23:22:51 +0000 (23:22 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3199 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_skb.c

index c476247e36e00b33d10f04c4d860647013ff2e72..5b0c787df5aa2220192d13a1ec82797c341ce080 100644 (file)
@@ -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,