Commit 86c7ec9e authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 90f9ba9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;