aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-11-12 05:21:14 +0000
committerJakub Kicinski <kuba@kernel.org>2025-11-13 17:25:33 -0800
commit407a06507c2358554958e8164dc97176feddcafc (patch)
treeea4bfa377d8b678550b52da6751513826afd49c4 /scripts/gdb/linux
parentnet: core: prevent NULL deref in generic_hwtstamp_ioctl_lower() (diff)
downloadwireguard-linux-407a06507c2358554958e8164dc97176feddcafc.tar.xz
wireguard-linux-407a06507c2358554958e8164dc97176feddcafc.zip
mlxsw: spectrum: Fix memory leak in mlxsw_sp_flower_stats()
The function mlxsw_sp_flower_stats() calls mlxsw_sp_acl_ruleset_get() to obtain a ruleset reference. If the subsequent call to mlxsw_sp_acl_rule_lookup() fails to find a rule, the function returns an error without releasing the ruleset reference, causing a memory leak. Fix this by using a goto to the existing error handling label, which calls mlxsw_sp_acl_ruleset_put() to properly release the reference. Fixes: 7c1b8eb175b69 ("mlxsw: spectrum: Add support for TC flower offload statistics") Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20251112052114.1591695-1-zilin@seu.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions