diff options
| author | Abdun Nihaal <nihaal@cse.iitm.ac.in> | 2026-08-01 11:25:05 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-04 18:03:29 -0700 |
| commit | 30ce0cb576b622f8fb5c5c9ebe43e28365374a3a (patch) | |
| tree | 461f749f2a7dfd59ef98d6bb9e622e4725e7358b /tools/perf/scripts/python/bin | |
| parent | 50eed72f1c7c639ec54edcb5892035b80c694df5 (diff) | |
net: microchip: vcap api: Fix possible memory leak in vcap_decode_rule()
The memory allocated for struct vcap_rule_internal, keyfields and
actionfields inside vcap_dup_rule() are not freed in some of the error
paths in vcap_decode_rule(). Fix that by calling vcap_free_rule().
Compile tested only. Issue found using a prototype static analysis tool
built on top of the LLVM compiler infrastructure.
Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path
Reviewed-by: Joe Damato <joe@dama.to>
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Link: https://patch.msgid.link/20260801055507.47534-1-nihaal@cse.iitm.ac.in
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
