mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user