Skip to content
Commit 62b03f45 authored by Yang Yingliang's avatar Yang Yingliang Committed by Johannes Berg
Browse files

wifi: mac80211: fix possible leak in ieee80211_tx_control_port()

Add missing dev_kfree_skb() in an error path in
ieee80211_tx_control_port() to avoid a memory leak.

Fixes: dd820ed6

 ("wifi: mac80211: return error from control port TX for drops")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220818043349.4168835-1-yangyingliang@huawei.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 36fe8e4e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment