mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
siw_create_qp() currently calls siw_qp_add() before the queues, CQ
pointers, state, completion, and device list entry are ready. A QPN
lookup can therefore reach a QP that is still being constructed.
Move siw_qp_add() to the end of siw_create_qp(), after QP
initialization and before adding the QP to the siw device list.
Fixes: f29dd55b02 ("rdma/siw: queue pair methods")
Link: https://patch.msgid.link/r/[email protected]
Suggested-by: Bernard Metzler <[email protected]>
Signed-off-by: Ruoyu Wang <[email protected]>
Acked-by: Bernard Metzler <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>