diff options
| author | Ziran Zhang <zhangcoder@yeah.net> | 2026-06-16 09:32:45 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-22 16:05:15 -0700 |
| commit | 53442aad1d5790932ed82220bd3c9e1ee9388b83 (patch) | |
| tree | 5308771b97ea7e48df60de7e7010f1deb60b9ef1 /scripts/Makefile.thinlto | |
| parent | 56abdaebbf0da304b860bed1f2b5a85f5a6a16a0 (diff) | |
rocker: Fix memory leak in ofdpa_port_fdb()
In ofdpa_port_fdb(), the hash_del() only unlinks the node from
hash table, but does not free it.
Fix this by adding kfree(found) after the !found == removing check,
where the pointer value is no longer needed.
Found by Coccinelle kfree script.
Cc: <stable+noautosel@kernel.org> # rocker is a test harness, it's never loaded on production systems
Signed-off-by: Ziran Zhang <zhangcoder@yeah.net>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260616013245.7098-1-zhangcoder@yeah.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
