aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorJohn Hurley <[email protected]>2018-11-27 14:04:11 -0800
committerDavid S. Miller <[email protected]>2018-11-30 13:24:56 -0800
commit1166494891da88af25c444e65cd4f32c3e026b46 (patch)
treeba4cad89e191ba5d522961cb49f09886177b43ae /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 (diff)
nfp: flower: release metadata on offload failure
Calling nfp_compile_flow_metadata both assigns a stats context and increments a ref counter on (or allocates) a mask id table entry. These are released by the nfp_modify_flow_metadata call on flow deletion, however, if a flow add fails after metadata is set then the flow entry will be deleted but the metadata assignments leaked. Add an error path to the flow add offload function to ensure allocated metadata is released in the event of an offload fail. Fixes: 81f3ddf2547d ("nfp: add control message passing capabilities to flower offloads") Signed-off-by: John Hurley <[email protected]> Reviewed-by: Pieter Jansen van Vuuren <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions