From f0a1f3d5373ad7e3ac82cce54e5f1033ba62cae1 Mon Sep 17 00:00:00 2001 From: mtaylor Date: Mon, 28 Jan 2008 20:05:31 +0000 Subject: [PATCH] Null protection for skb1 in multicast node fix git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3285 0192ed92-7a03-0410-a25b-9323aeb14dbd --- net80211/ieee80211_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net80211/ieee80211_input.c b/net80211/ieee80211_input.c index 03d9292..e916e99 100644 --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c @@ -1138,7 +1138,8 @@ ieee80211_deliver_data(struct ieee80211_node *ni, struct sk_buff *skb) if (ETHER_IS_MULTICAST(eh->ether_dhost)) { /* Create a SKB for the BSS to send out. */ skb1 = skb_copy(skb, GFP_ATOMIC); - SKB_CB(skb1)->ni = ieee80211_ref_node(vap->iv_bss); + if (skb1) + SKB_CB(skb1)->ni = ieee80211_ref_node(vap->iv_bss); } else { /*