summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2025-03-07 05:18:20 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-10 23:03:03 +0300
commiteab0396353be1c778eba1c0b5180176f04dd21ce (patch)
tree7012001412c7bdf42569abbc3eab361726209c90 /net/switchdev/switchdev.c
parent505ead7ab77f289f12d8a68ac83da068e4d4408b (diff)
downloadlinux-eab0396353be1c778eba1c0b5180176f04dd21ce.tar.xz
net/mlx5: handle errors in mlx5_chains_create_table()
In mlx5_chains_create_table(), the return value of mlx5_get_fdb_sub_ns() and mlx5_get_flow_namespace() must be checked to prevent NULL pointer dereferences. If either function fails, the function should log error message with mlx5_core_warn() and return error pointer. Fixes: 39ac237ce009 ("net/mlx5: E-Switch, Refactor chains and priorities") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20250307021820.2646-1-vulab@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions