]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Handle error in mlxsw_sp_bridge_mdb_mc_enable_sync()
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:39 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:58 +0000 (12:56 +0100)
commitbaa76e6d5e99f872fb1e4944d6a73a5683f41e07
tree0704febc6f5ec7c106a8a724f723084a6e8554ff
parentc86dd1a9c29207ec2f7378a0e2cb58a609d85171
mlxsw: spectrum_switchdev: Handle error in mlxsw_sp_bridge_mdb_mc_enable_sync()

The above mentioned function calls two functions which return values, but
it ignores them.

Check if the return value is an error, handle it in such case and return
an error back to the caller.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c