]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, fix a potential Oops with mlx5_lag_create_definer()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Nov 2021 08:07:06 +0000 (11:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2021 14:43:20 +0000 (14:43 +0000)
commitb16bdbde531990f1a4d330d56c67ed6c30523168
tree33d0b193665c311d56bd68e3cfd090180799a1a1
parentf818e4c1435457bf8994dfbc4132f3c666c48919
net/mlx5: Lag, fix a potential Oops with mlx5_lag_create_definer()

There is a minus character missing from ERR_PTR(ENOMEM) so if this
allocation fails it will lead to an Oops in the caller.

Fixes: 03a2e8a86930 ("net/mlx5: Lag, add support to create definers for LAG")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c