summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhao Li <enderaoelyther@gmail.com>2026-09-16 19:36:48 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-09-21 16:00:51 +0200
commit7325a44474f20c1393a1c114c6811abce6ddfaf4 (patch)
tree015701b3ef780fc993d7cf8211cac24a43d5b09a /tools/perf/scripts/python
parentf8ebe286394c0bbb4a6dbacb182a34ab6376922d (diff)
downloadlinux-7325a44474f20c1393a1c114c6811abce6ddfaf4.tar.gz
linux-7325a44474f20c1393a1c114c6811abce6ddfaf4.zip
wifi: mac80211: release mesh path quota on failed additions
Repeated failed or duplicate mesh path additions can exhaust MESH_MAX_MPATHS while the path table holds fewer paths, which stops new paths to reachable destinations from being created. mesh_path_add() reserves a slot before allocating and inserting a path. If allocation fails, the function returns without releasing the slot. If the rhashtable insertion reports an error or an existing destination, the function discards its candidate but retains the reservation. No new path is installed in any of these cases. Release the reservation whenever the candidate is not installed. Fixes: ae76eef027f7 ("mac80211: return new mpath from mesh_path_add()") Fixes: 60854fd94573 ("mac80211: mesh: convert path table to rhashtable") Cc: stable@vger.kernel.org Assisted-by: LLM sparse kasan Signed-off-by: Zhao Li <enderaoelyther@gmail.com> Link: https://patch.msgid.link/20260916113649.28315-2-enderaoelyther@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions