aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorQiushi Wu <[email protected]>2020-05-02 17:42:59 -0500
committerDavid S. Miller <[email protected]>2020-05-04 12:04:12 -0700
commitbd4af432cc71b5fbfe4833510359a6ad3ada250d (patch)
tree6eba1b8b3c7f1ac43163fed68f8154f2832ec410 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent8d9f73c0ad2f20e9fed5380de0a3097825859d03 (diff)
nfp: abm: fix a memory leak bug
In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, which can lead to a memory leak bug. Fix this issue by adding nfp_nsp_close(nsp) in the error path. Fixes: f6e71efdf9fb1 ("nfp: abm: look up MAC addresses via management FW") Signed-off-by: Qiushi Wu <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions