android_kernel_xiaomi_sm8350/drivers/infiniband/sw
Kamal Heib 9e8f4623e2 RDMA/siw: Fix reporting vendor_part_id
[ Upstream commit 04340645f69ab7abb6f9052688a60f0213b3f79c ]

Move the initialization of the vendor_part_id to be before calling
ib_register_device(), this is needed because the query_device() callback
is called from the context of ib_register_device() before initializing the
vendor_part_id, so the reported value is wrong.

Fixes: bdcf26bf9b ("rdma/siw: network and RDMA core interface")
Link: https://lore.kernel.org/r/20200707130931.444724-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-16 08:16:40 +02:00
..
rdmavt RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq 2020-06-30 15:36:57 -04:00
rxe RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info() 2020-05-20 08:20:25 +02:00
siw RDMA/siw: Fix reporting vendor_part_id 2020-07-16 08:16:40 +02:00
Makefile