Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IB/mlx5: Fix error code in get_port_caps()
The current code returns success when kmalloc() fails. It should return an error code, -ENOMEM. Fixes: e126ba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
- Loading branch information