diff options
author | Junxian Huang <huangjunxian6@hisilicon.com> | 2025-07-03 19:39:03 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-07-07 01:37:35 -0400 |
commit | 278c18a4a78a9a6bf529ef45ccde512a5686ea9d (patch) | |
tree | 0c4eaf07311a8926cb55c86c6cb1950869cabd9c /scripts/gdb/linux/vmalloc.py | |
parent | 2c2ec0106c0f1f12d4eefd11de318ac47557a750 (diff) |
RDMA/hns: Fix accessing uninitialized resources
hr_dev->pgdir_list and hr_dev->pgdir_mutex won't be initialized if
CQ/QP record db are not enabled, but they are also needed when using
SRQ with SRQ record db enabled. Simplified the logic by always
initailizing the reosurces.
Fixes: c9813b0b9992 ("RDMA/hns: Support SRQ record doorbell")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20250703113905.3597124-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions