summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ipl.c
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2021-12-09 15:16:07 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-12-14 20:09:50 -0400
commit20679094a0161c94faf77e373fa3f7428a8e14bd (patch)
tree625db694a959a29171114bc6daf738ccdb77bab0 /arch/s390/kernel/ipl.c
parent483d805191a23191f8294bbf9b4e94836f5d92e4 (diff)
downloadlinux-20679094a0161c94faf77e373fa3f7428a8e14bd.tar.bz2
RDMA/cma: Let cma_resolve_ib_dev() continue search even after empty entry
Currently, when cma_resolve_ib_dev() searches for a matching GID it will stop searching after encountering the first empty GID table entry. This behavior is wrong since neither IB nor RoCE spec enforce tightly packed GID tables. For example, when the matching valid GID entry exists at index N, and if a GID entry is empty at index N-1, cma_resolve_ib_dev() will fail to find the matching valid entry. Fix it by making cma_resolve_ib_dev() continue searching even after encountering missing entries. Fixes: f17df3b0dede ("RDMA/cma: Add support for AF_IB to rdma_resolve_addr()") Link: https://lore.kernel.org/r/b7346307e3bb396c43d67d924348c6c496493991.1639055490.git.leonro@nvidia.com Signed-off-by: Avihai Horon <avihaih@nvidia.com> Reviewed-by: Mark Zhang <markzhang@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'arch/s390/kernel/ipl.c')
0 files changed, 0 insertions, 0 deletions