diff options
author | Fedor Pchelkin <[email protected]> | 2023-08-04 18:53:36 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-08-06 16:43:07 +0100 |
commit | b1c936e9af5dd08636d568736fc6075ed9d1d529 (patch) | |
tree | 7ad30e4f0f294015aa146538b8b016dde82bc43d /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 32d0a49d36a2a306c2e47fe5659361e424f0ed3f (diff) |
drivers: vxlan: vnifilter: free percpu vni stats on error path
In case rhashtable_lookup_insert_fast() fails inside vxlan_vni_add(), the
allocated percpu vni stats are not freed on the error path.
Introduce vxlan_vni_free() which would work as a nice wrapper to free
vxlan_vni_node resources properly.
Found by Linux Verification Center (linuxtesting.org).
Fixes: 4095e0e1328a ("drivers: vxlan: vnifilter: per vni stats")
Suggested-by: Ido Schimmel <[email protected]>
Signed-off-by: Fedor Pchelkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions