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)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Jul 2019 18:45:04 +0000 (11:45 -0700)
commitef1ce7d7b67b46661091c7ccc0396186b7a247ef
tree26f6f477661d424372ef4254f76a269329dd1c9a
parent99d31cbd8953c6929da978bf049ab0f0b4e503d9
net/mlx5e: IPoIB, Add error path in mlx5_rdma_setup_rn

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>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c