linux/net/wireless
Emmanuel Grumbach 249e1443e3 wifi: nl80211: call kfree without a NULL check
Coverity is unhappy because we may leak old_radio_rts_threshold. Since
this pointer is only valid in the context of the function and kfree is
NULL pointer safe, don't check and just call kfree.
Note that somehow, we were checking old_rts_threshold to free
old_radio_rts_threshold which is a bit odd.

Fixes: 264637941c ("wifi: cfg80211: Add Support to Set RTS Threshold for each Radio")
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20251020075745.44168-1-emmanuel.grumbach@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-10-20 13:57:26 +02:00
..
certs
tests
.gitignore
ap.c
chan.c wifi: cfg80211: correctly implement and validate S1G chandef 2025-09-19 11:55:56 +02:00
core.c wifi: nl80211: allow drivers to support subset of NL80211_CMD_SET_BSS 2025-09-04 11:19:02 +02:00
core.h wifi: cfg80211: hide scan internals 2025-07-09 11:52:35 +02:00
debugfs.c
debugfs.h
ethtool.c wifi: cfg80211: Remove the redundant wiphy_dev 2025-09-10 15:05:48 +02:00
ibss.c
Kconfig
Makefile
mesh.c
mlme.c wifi: cfg80211: reject HTC bit for management frames 2025-07-21 19:35:45 +02:00
nl80211.c wifi: nl80211: call kfree without a NULL check 2025-10-20 13:57:26 +02:00
nl80211.h wifi: cfg80211: Add support for dynamic addition/removal of links 2025-01-13 15:34:08 +01:00
ocb.c
of.c
pmsr.c
radiotap.c
rdev-ops.h wifi: cfg80211: hide scan internals 2025-07-09 11:52:35 +02:00
reg.c wifi: cfg80211: correctly implement and validate S1G chandef 2025-09-19 11:55:56 +02:00
reg.h
scan.c Plenty of things going on, notably: 2025-09-11 17:50:46 -07:00
sme.c wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result() 2025-09-03 09:37:55 +02:00
sysfs.c
sysfs.h
trace.c
trace.h wifi: cfg80211: Add cluster joined notification APIs 2025-09-19 11:26:21 +02:00
util.c wifi: cfg80211: fix width unit in cfg80211_radio_chandef_valid() 2025-09-23 09:50:02 +02:00
wext-compat.c wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
wext-compat.h
wext-core.c net: s/dev_get_flags/netif_get_flags/ 2025-07-18 17:27:47 -07:00
wext-priv.c
wext-proc.c
wext-sme.c