diff options
| author | Jason Gunthorpe <[email protected]> | 2020-11-30 07:58:36 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-12-07 18:06:23 +0000 |
| commit | adac4cb3c1ff5c47c9f47be5d017a0e054176e3c (patch) | |
| tree | 45cefe975243d418e52288bd3604a120d6c48e05 /drivers/infiniband/hw/mlx5/devx.c | |
| parent | RDMA/uverbs: Tidy input validation of ib_uverbs_rereg_mr() (diff) | |
| download | kernel-adac4cb3c1ff5c47c9f47be5d017a0e054176e3c.tar.gz kernel-adac4cb3c1ff5c47c9f47be5d017a0e054176e3c.zip | |
RDMA/uverbs: Check ODP in ib_check_mr_access() as well
No reason only one caller checks this. This properly blocks ODP
from the rereg flow if the device does not support ODP.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/devx.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/devx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index ad0173f62c0e..819c142857d6 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -2068,7 +2068,7 @@ static int devx_umem_get(struct mlx5_ib_dev *dev, struct ib_ucontext *ucontext, if (err) return err; - err = ib_check_mr_access(access); + err = ib_check_mr_access(&dev->ib_dev, access); if (err) return err; |
