diff options
author | 2020-12-03 21:08:07 +0200 | |
---|---|---|
committer | 2020-12-07 15:52:54 -0400 | |
commit | ca991a7d14d4835b302bcd182fdbf54470f45520 (patch) | |
tree | 949caffc12c0ae35278943ceb03367e2957d750c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/hns: Move capability flags of QP and CQ to hns-abi.h (diff) | |
download | wireguard-linux-ca991a7d14d4835b302bcd182fdbf54470f45520.tar.xz wireguard-linux-ca991a7d14d4835b302bcd182fdbf54470f45520.zip |
RDMA/mlx5: Assign dev to DM MR
Currently, DM MR registration flow doesn't set the mlx5_ib_dev pointer and
can cause a NULL pointer dereference if userspace dumps the MR via rdma
tool.
Assign the IB device together with the other fields and remove the
redundant reference of mlx5_ib_dev from mlx5_ib_mr.
Cc: stable@vger.kernel.org
Fixes: 6c29f57ea475 ("IB/mlx5: Device memory mr registration support")
Link: https://lore.kernel.org/r/20201203190807.127189-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions