summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorStav Aviram <saviram@nvidia.com>2025-07-01 15:08:12 +0300
committerLeon Romanovsky <leon@kernel.org>2025-07-02 14:08:23 -0400
commit70f238c902b8c0461ae6fbb8d1a0bbddc4350eea (patch)
treedc8ed8f230215f7ea0717a335be116c5b4a92051 /net/switchdev/switchdev.c
parent02943ac2f6fbba8fc5e57c57e7cbc2d7c67ebf0d (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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions