Commit 42f46396 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by sanglipeng
Browse files

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: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Link: https://lore.kernel.org/r/20230713141658.9426-1-tbogendoerfer@suse.de


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 3be3a55b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment