mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
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
This commit is contained in:
parent
d2db9e2fc0
commit
f2bbcd9fa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user