aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ptp.c
diff options
context:
space:
mode:
authorZilin Guan <[email protected]>2025-05-23 11:01:56 +0000
committerJohannes Berg <[email protected]>2025-06-11 09:36:56 +0000
commitf87586598fffac31afc1141471b789251b030a76 (patch)
tree56469c522fad33f3b3764688ab7f493f50203b1a /drivers/net/ethernet/intel/ice/ice_ptp.c
parentMerge tag 'ath-current-20250608' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadkernel-f87586598fffac31afc1141471b789251b030a76.tar.gz
kernel-f87586598fffac31afc1141471b789251b030a76.zip
wifi: cfg80211: use kfree_sensitive() for connkeys cleanup
The nl80211_parse_connkeys() function currently uses kfree() to release the 'result' structure in error handling paths. However, if an error occurs due to result->def being less than 0, the 'result' structure may contain sensitive information. To prevent potential leakage of sensitive data, replace kfree() with kfree_sensitive() when freeing 'result'. This change aligns with the approach used in its caller, nl80211_join_ibss(), enhancing the overall security of the wireless subsystem. Signed-off-by: Zilin Guan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ptp.c')
0 files changed, 0 insertions, 0 deletions