Null protection for skb1 in multicast node fix
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 28 Jan 2008 20:05:31 +0000 (20:05 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 28 Jan 2008 20:05:31 +0000 (20:05 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3285 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_input.c

index 03d9292a8e66465018c32e12f771235e5cf420a0..e916e990d24f6600560a2b68ddfa75f44424589c 100644 (file)
@@ -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 {
                        /*