Files
linux-stable-mirror/drivers/net/ethernet
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>
2025-08-15 12:04:57 +02:00
..
2025-06-27 11:07:29 +01:00
2025-07-10 15:59:49 +02:00