|
@@ -997,7 +997,7 @@ static int get_port_caps(struct mlx5_ib_dev *dev)
|
|
struct ib_device_attr *dprops = NULL;
|
|
struct ib_device_attr *dprops = NULL;
|
|
struct ib_port_attr *pprops = NULL;
|
|
struct ib_port_attr *pprops = NULL;
|
|
struct mlx5_general_caps *gen;
|
|
struct mlx5_general_caps *gen;
|
|
- int err = 0;
|
|
|
|
|
|
+ int err = -ENOMEM;
|
|
int port;
|
|
int port;
|
|
|
|
|
|
gen = &dev->mdev->caps.gen;
|
|
gen = &dev->mdev->caps.gen;
|