RDMA/mthca: Fix crash when polling CQ for shared QPs
stable inclusion from stable-v5.10.190 commit b0100bdb9dcd405f00248b1d4b6426bf14a2e576 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b0100bdb9dcd405f00248b1d4b6426bf14a2e576 -------------------------------- [ Upstream commit dc52aadb ] Commit 21c2fe94 ("RDMA/mthca: Combine special QP struct with mthca QP") introduced a new struct mthca_sqp which doesn't contain struct mthca_qp any longer. Placing a pointer of this new struct into qptable leads to crashes, because mthca_poll_one() expects a qp pointer. Fix this by putting the correct pointer into qptable. Fixes: 21c2fe94 ("RDMA/mthca: Combine special QP struct with mthca QP") Signed-off-by:Thomas Bogendoerfer <tbogendoerfer@suse.de> Link: https://lore.kernel.org/r/20230713141658.9426-1-tbogendoerfer@suse.de Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment