]> git.dujemihanovic.xyz Git - linux.git/commit
net/mlx5e: TC, Add null pointer check for hardware miss support
authorChris Mi <cmi@nvidia.com>
Tue, 11 Apr 2023 08:17:35 +0000 (11:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:59:19 +0000 (12:59 -0700)
commitb100573ab76ee5b0cb8f9129b568d9e7da795f76
treece2d7830e6330dc4411fbed8b524a9b270569102
parent0ab999d4a1bfe8251538be1e7e495c50433475a8
net/mlx5e: TC, Add null pointer check for hardware miss support

The cited commits add hardware miss support to tc action. But if
the rules can't be offloaded, the pointers are null and system
will panic when accessing them.

Fix it by checking null pointer.

Fixes: 08fe94ec5f77 ("net/mlx5e: TC, Remove special handling of CT action")
Fixes: 6702782845a5 ("net/mlx5e: TC, Set CT miss to the specific ct action instance")
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c