diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-06-18 13:41:33 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-06-23 12:29:14 +0300 |
commit | 7d7b00759e56bd2c0ff8b1155cb00f452dfc1c5d (patch) | |
tree | aadafd8fa773d522f2182eea6d36853d686a4e3b /net/mac80211/chan.c | |
parent | 79ea0a5fad749dabfd7b8a1b73dd6662383762d1 (diff) | |
download | linux-7d7b00759e56bd2c0ff8b1155cb00f452dfc1c5d.tar.xz |
mac80211: free skb in WEP error case
If, for some strange reason, ieee80211_wep_encrypt() fails in
ieee80211_send_auth() free the SKB instead of sending out the
useless frame, in addition to the warning. This can't really
happen since the SKB was freshly allocated.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.98f058d7a8b2.Ie605e6a10e72eae02f5734032826af48b85b6d11@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/chan.c')
0 files changed, 0 insertions, 0 deletions