diff options
| author | Leon Romanovsky <leon@kernel.org> | 2025-07-07 06:29:16 -0400 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-07-07 06:29:16 -0400 |
| commit | f3b7a65ce551ee7800f759ec7e198ee5030243dc (patch) | |
| tree | 4449b01f6b1f0e85bcaac04331ddd241b09bebc7 /drivers/infiniband | |
| parent | 7788278ff267f831bab39a377beaa7e08d79c2a9 (diff) | |
| parent | 70f238c902b8c0461ae6fbb8d1a0bbddc4350eea (diff) | |
Merge branch 'mlx5-next' into wip/leon-for-next
* mlx5-next:
net/mlx5: Check device memory pointer before usage
net/mlx5: fs, fix RDMA TRANSPORT init cleanup flow
net/mlx5: Add IFC bits for PCIe Congestion Event object
net/mlx5: Small refactor for general object capabilities
Diffstat (limited to 'drivers/infiniband')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/dm.c b/drivers/infiniband/hw/mlx5/dm.c index b4c97fb62abf..9ded2b7c1e31 100644 --- a/drivers/infiniband/hw/mlx5/dm.c +++ b/drivers/infiniband/hw/mlx5/dm.c @@ -282,7 +282,7 @@ static struct ib_dm *handle_alloc_dm_memic(struct ib_ucontext *ctx, int err; u64 address; - if (!MLX5_CAP_DEV_MEM(dm_db->dev, memic)) + if (!dm_db || !MLX5_CAP_DEV_MEM(dm_db->dev, memic)) return ERR_PTR(-EOPNOTSUPP); dm = kzalloc(sizeof(*dm), GFP_KERNEL); |
