aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2020-08-03 19:11:36 +0300
committerDavid S. Miller <[email protected]>2020-08-03 18:06:46 -0700
commit928345c08b72dd175d4eefa24900f09706a9a3b5 (patch)
treea4843904560cd2a7224fea92fd9320b038aafdf5 /tools/perf/util/scripting-engines/trace-event-python.c
parent76ba292cc7d7b760ee3e25aba353fb7ab86e64d3 (diff)
mlxsw: spectrum_span: On policer_id_base_ref_count, use dec_and_test
When unsetting policer base, the SPAN code currently uses refcount_dec(). However that function splats when the counter reaches zero, because reaching zero without actually testing is in general indicative of a missing cleanup. There is no cleanup to be done here, but nonetheless, use refcount_dec_and_test() as required. Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions