Use clone instead of copy because the contents of the frame may be modified.
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 15 Jan 2008 23:46:22 +0000 (23:46 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 15 Jan 2008 23:46:22 +0000 (23:46 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3130 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_output.c

index 4ed6ae5e5c68cd97e9d060e20ba8bb120f7867dc..a07d4dc0526885a2930a4378928b49214b09eb25 100644 (file)
@@ -283,7 +283,7 @@ ieee80211_hardstart(struct sk_buff *skb, struct net_device *dev)
         * normal vap. */
        if (vap->iv_xrvap && (ni == vap->iv_bss) &&
            vap->iv_xrvap->iv_sta_assoc) {
-               struct sk_buff *skb1 = skb_clone(skb, GFP_ATOMIC);
+               struct sk_buff *skb1 = skb_copy(skb, GFP_ATOMIC);
                if (skb1) {
                        memset(SKB_CB(skb1), 0, sizeof(struct ieee80211_cb));
 #ifdef IEEE80211_DEBUG_REFCNT