diff options
author | 2018-12-06 17:44:51 +0000 | |
---|---|---|
committer | 2018-12-06 13:31:08 -0800 | |
commit | f58a83c207b791c6586b9675a589db5c6ac7909e (patch) | |
tree | 0ac2d47532b404e0215eec6615dc2be4873e45e6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: spectrum_nve: Remove easily triggerable warnings (diff) | |
download | wireguard-linux-f58a83c207b791c6586b9675a589db5c6ac7909e.tar.xz wireguard-linux-f58a83c207b791c6586b9675a589db5c6ac7909e.zip |
mlxsw: spectrum_switchdev: Avoid leaking FID's reference count
It should never be possible for a user to set a VNI on a FID in case one
is already set. The driver therefore returns an error, but fails to drop
the reference count taken earlier when calling
mlxsw_sp_fid_8021d_lookup().
Drop the reference when this unlikely error is hit.
Fixes: 1c30d1836aeb ("mlxsw: spectrum: Enable VxLAN enslavement to bridges")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions