* [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()
@ 2017-11-06 11:11 Wei Yongjun
2017-11-06 11:54 ` Ido Schimmel
2017-11-08 4:26 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2017-11-06 11:11 UTC (permalink / raw)
To: Jiri Pirko, Ido Schimmel; +Cc: Wei Yongjun, netdev
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>
---
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index 63e5087..6c604c6 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
@@ -3007,6 +3007,7 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port,
if (IS_ERR(mlxsw_sp_port_vlan)) {
dev_err(mlxsw_sp->bus_info->dev, "Port %d: Failed to create VID 1\n",
mlxsw_sp_port->local_port);
+ err = PTR_ERR(mlxsw_sp_port_vlan);
goto err_port_vlan_get;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()
2017-11-06 11:11 [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create() Wei Yongjun
@ 2017-11-06 11:54 ` Ido Schimmel
2017-11-08 4:26 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Ido Schimmel @ 2017-11-06 11:54 UTC (permalink / raw)
To: Wei Yongjun; +Cc: Jiri Pirko, Ido Schimmel, netdev
On Mon, Nov 06, 2017 at 11:11:28AM +0000, Wei Yongjun wrote:
> 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>
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()
2017-11-06 11:11 [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create() Wei Yongjun
2017-11-06 11:54 ` Ido Schimmel
@ 2017-11-08 4:26 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-11-08 4:26 UTC (permalink / raw)
To: weiyongjun1; +Cc: jiri, idosch, netdev
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Mon, 6 Nov 2017 11:11:28 +0000
> 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>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-08 4:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 11:11 [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create() Wei Yongjun
2017-11-06 11:54 ` Ido Schimmel
2017-11-08 4:26 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.