Parcourir la source

Fixed tx() handler to use GFP_ATOMIC.

Jouni Malinen il y a 17 ans
Parent
commit
a837861751
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      mac80211_hwsim/mac80211_hwsim.c

+ 1 - 1
mac80211_hwsim/mac80211_hwsim.c

@@ -113,7 +113,7 @@ static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
 		if (!data2->radio_enabled || data->freq != data2->freq)
 			continue;
 
-		nskb = skb_copy(skb, GFP_KERNEL);
+		nskb = skb_copy(skb, GFP_ATOMIC);
 		if (nskb == NULL)
 			continue;