linux-imx/drivers/infiniband
Leon Romanovsky 480d281743 RDMA/device: Return error earlier if port in not valid
[ Upstream commit 917918f57a ]

There is no need to allocate port data if port provided is not valid.

Fixes: c2261dd76b ("RDMA/device: Add ib_device_set_netdev() as an alternative to get_netdev")
Link: https://lore.kernel.org/r/022047a8b16988fc88d4426da50bf60a4833311b.1719235449.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:54:00 +02:00
..
core RDMA/device: Return error earlier if port in not valid 2024-08-03 08:54:00 +02:00
hw RDMA/mlx4: Fix truncated output warning in alias_GUID.c 2024-08-03 08:53:59 +02:00
sw RDMA/rxe: Don't set BTH_ACK_MASK for UC or UD QPs 2024-08-03 08:53:59 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-12 11:12:11 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile