]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: IPoIB, Add error path in mlx5_rdma_setup_rn
authorAya Levin <ayal@mellanox.com>
Sun, 7 Jul 2019 13:57:06 +0000 (16:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:33 +0000 (08:28 +0200)
commit5a637c0b0d5e37076f5fec36879016f9308a328a
tree864ba85b9060c3e4d076ed1b612022c1b5d434ca
parent98ecf34e6b82d9c04bff5cb39e9ff964f505bb79
net/mlx5e: IPoIB, Add error path in mlx5_rdma_setup_rn

[ Upstream commit ef1ce7d7b67b46661091c7ccc0396186b7a247ef ]

Check return value from mlx5e_attach_netdev, add error path on failure.

Fixes: 48935bbb7ae8 ("net/mlx5e: IPoIB, Add netdevice profile skeleton")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c