Null protection for skb1 in multicast node fix

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3285 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2008-01-28 20:05:31 +00:00
parent 6600ba247b
commit f0a1f3d537

View 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 {
/*