mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 09:20:13 -04:00
RDMA/core: Fix skipped usage for driver built FRMR key
When creating FRMR handles following a netlink command to pin handles,
use the key after driver callback instead of using the key passed directly
from user.
Fixes: 020d189d16 ("RDMA/core: Add pinned handles to FRMR pools")
Link: https://patch.msgid.link/r/20260610000145.820592-4-michaelgur@nvidia.com
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
fe683274fe
commit
3d7fd88aef
@@ -426,7 +426,7 @@ int ib_frmr_pools_set_pinned(struct ib_device *device, struct ib_frmr_key *key,
|
||||
if (!handles)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = pools->pool_ops->create_frmrs(device, key, handles,
|
||||
ret = pools->pool_ops->create_frmrs(device, &driver_key, handles,
|
||||
needed_handles);
|
||||
if (ret) {
|
||||
kfree(handles);
|
||||
|
||||
Reference in New Issue
Block a user