mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
RDMA/core: Set MR type in ib_reg_user_mr
[ Upstream commit32a88d1661
] Add missing assignment of MR type to IB_MR_TYPE_USER. Fixes:33006bd4f3
("IB/core: Introduce ib_reg_user_mr") Link: https://lore.kernel.org/r/be2e91bcd6e52dc36be289ae92f30d3a5cc6dcb1.1642491047.git.leonro@nvidia.com Signed-off-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3a3d93349c
commit
16ad5b3013
1 changed files with 1 additions and 0 deletions
|
@ -2153,6 +2153,7 @@ struct ib_mr *ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
|
|||
return mr;
|
||||
|
||||
mr->device = pd->device;
|
||||
mr->type = IB_MR_TYPE_USER;
|
||||
mr->pd = pd;
|
||||
mr->dm = NULL;
|
||||
atomic_inc(&pd->usecnt);
|
||||
|
|
Loading…
Reference in a new issue