mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 6 Nov 2017 11:11:28 +0000 (11:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:24 +0000 (10:10 +0100)
commit540236e28f32749f5d1711020fbcab5be3afbf7f
tree38c1c29711eeb715304e371fc196d441efa4a3bf
parentac6864737c0240499f1cd0689cd61b2bad6e04c8
mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

[ Upstream commit d86fd113ebbb37726ef7c7cc6fd6d5ce377455d6 ]

Fix to return a negative error code from the VID  create error handling
case instead of 0, as done elsewhere in this function.

Fixes: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c