From e43eb9472deddd987436b3c6be755ff838f23b01 Mon Sep 17 00:00:00 2001 From: mtaylor Date: Wed, 16 Jan 2008 00:02:50 +0000 Subject: [PATCH] Fix for NULL dereference in skb tracking code git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3136 0192ed92-7a03-0410-a25b-9323aeb14dbd --- net80211/ieee80211_skb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net80211/ieee80211_skb.c b/net80211/ieee80211_skb.c index 6b09375..c476247 100644 --- a/net80211/ieee80211_skb.c +++ b/net80211/ieee80211_skb.c @@ -268,7 +268,8 @@ static void print_skb_trackchange_message( static struct sk_buff * clean_clone_or_copy(struct sk_buff *skb) { - SKB_CB(skb)->tracked = 0; + if (skb != NULL) + SKB_CB(skb)->tracked = 0; return skb; }