summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorDaniel Machon <daniel.machon@microchip.com>2026-10-07 17:03:15 +0200
committerJakub Kicinski <kuba@kernel.org>2026-10-08 10:55:23 -0700
commit2b82e16d6084cbc651e3c902198f1945408ee1a5 (patch)
tree0b6ccf6751194935d32a27c89f8c67389e1bcf5d /tools/lib/python/kdoc/python_version.py
parentff6f5157e034f81c2d6482259fc656cd0fe5a8ff (diff)
downloadlinux-next-2b82e16d6084cbc651e3c902198f1945408ee1a5.tar.gz
linux-next-2b82e16d6084cbc651e3c902198f1945408ee1a5.zip
net: sparx5: free the matchall entry on destroy
sparx5_tc_matchall_replace() allocates a struct sparx5_mall_entry for every offloaded matchall filter and adds it to sparx5->mall_entries. sparx5_tc_matchall_destroy() removes the entry from the list, but never frees it, so the entry of every deleted mirror and goto matchall filter is leaked. Free the entry after unlinking it. The leak was discovered by an AI code review agent, and reproduced with kmemleak on a lan969x EV board (EV23X71A) by repeatedly adding and deleting matchall mirror and goto filters. With the fix, kmemleak no longer reports the leak. Cc: stable@vger.kernel.org Fixes: 1ede4acf045c ("net: sparx5: add bookkeeping code for matchall rules") Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/20261007-sparx5-matchall-kfree-net-v1-1-c8918685b337@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions