summaryrefslogtreecommitdiff
path: root/drivers/scsi/smartpqi/smartpqi_init.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2018-12-06 17:44:51 +0000
committerDavid S. Miller <davem@davemloft.net>2018-12-06 13:31:08 -0800
commitf58a83c207b791c6586b9675a589db5c6ac7909e (patch)
tree0ac2d47532b404e0215eec6615dc2be4873e45e6 /drivers/scsi/smartpqi/smartpqi_init.c
parent050fc01fb1d916058605569cd7f4e15152afc3af (diff)
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 'drivers/scsi/smartpqi/smartpqi_init.c')
0 files changed, 0 insertions, 0 deletions