mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
mac80211: properly free skb when r-o-c for TX fails
When freeing the TX skb for an off-channel TX, use the correct API to also free the ACK skb that might have been allocated. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
90f9ba9b89
commit
86c7ec9eb1
@ -3474,7 +3474,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
||||
params->wait, cookie, skb,
|
||||
IEEE80211_ROC_TYPE_MGMT_TX);
|
||||
if (ret)
|
||||
kfree_skb(skb);
|
||||
ieee80211_free_txskb(&local->hw, skb);
|
||||
out_unlock:
|
||||
mutex_unlock(&local->mtx);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user