From: mtaylor Date: Tue, 15 Jan 2008 23:46:22 +0000 (+0000) Subject: Use clone instead of copy because the contents of the frame may be modified. X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=f2bbcd9fa26fdfd044c075e9839ff0ce79d62d45;p=madwifi%2F.git Use clone instead of copy because the contents of the frame may be modified. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3130 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/net80211/ieee80211_output.c b/net80211/ieee80211_output.c index 4ed6ae5..a07d4dc 100644 --- a/net80211/ieee80211_output.c +++ b/net80211/ieee80211_output.c @@ -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