linux/drivers/infiniband
Stav Aviram eebb225fe6 net/mlx5: Check device memory pointer before usage
[ Upstream commit 70f238c902 ]

Add a NULL check before accessing device memory to prevent a crash if
dev->dm allocation in mlx5_init_once() fails.

Fixes: c9b9dcb430 ("net/mlx5: Move device memory management to mlx5_core")
Signed-off-by: Stav Aviram <saviram@nvidia.com>
Link: https://patch.msgid.link/c88711327f4d74d5cebc730dc629607e989ca187.1751370035.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:04:57 +02:00
..
core RDMA/core: Rate limit GID cache warning messages 2025-08-15 12:04:45 +02:00
hw net/mlx5: Check device memory pointer before usage 2025-08-15 12:04:57 +02:00
sw RDMA/rxe: Fix slab-use-after-free Read in rxe_queue_cleanup bug 2025-05-22 14:10:01 +02:00
ulp RDMA/srp: Fix error handling in srp_add_port 2025-02-21 13:49:12 +01:00
Kconfig RDMA: Disable IB HW for UML 2022-12-31 13:32:36 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00