diff options
| author | Petr Machata <[email protected]> | 2020-08-03 16:11:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-08-04 01:06:46 +0000 |
| commit | 928345c08b72dd175d4eefa24900f09706a9a3b5 (patch) | |
| tree | a4843904560cd2a7224fea92fd9320b038aafdf5 /drivers/net/dsa/dsa_loop.c | |
| parent | mlxsw: spectrum_trap: Use 'size_t' for array sizes (diff) | |
| download | kernel-928345c08b72dd175d4eefa24900f09706a9a3b5.tar.gz kernel-928345c08b72dd175d4eefa24900f09706a9a3b5.zip | |
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 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions
