commit | e39c927a35cb0056bd13c64e37c3af5ddd8c8bc3 | [log] [tgz] |
---|---|---|
author | Stav Aviram <saviram@nvidia.com> | Tue Jul 01 15:08:12 2025 +0300 |
committer | Leon Romanovsky <leon@kernel.org> | Mon Jul 07 03:14:26 2025 -0400 |
tree | a0156967bee0a8babc5592225ce56a5225a2fa8a | |
parent | 5adecb4ec86524c81f2b4d51b90f5b37d7fe227b [diff] |
net/mlx5: Check device memory pointer before usage Add a NULL check before accessing device memory to prevent a crash if dev->dm allocation in mlx5_init_once() fails. Fixes: c9b9dcb430b3 ("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>