File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
drivers/net/ethernet/mellanox/mlx5/core/lib Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,11 @@ struct mlx5_ttc_table *mlx5_create_inner_ttc_table(struct mlx5_core_dev *dev,
655
655
}
656
656
657
657
ns = mlx5_get_flow_namespace (dev , params -> ns_type );
658
+ if (!ns ) {
659
+ kvfree (ttc );
660
+ return ERR_PTR (- EOPNOTSUPP );
661
+ }
662
+
658
663
groups = use_l4_type ? & inner_ttc_groups [TTC_GROUPS_USE_L4_TYPE ] :
659
664
& inner_ttc_groups [TTC_GROUPS_DEFAULT ];
660
665
@@ -728,6 +733,11 @@ struct mlx5_ttc_table *mlx5_create_ttc_table(struct mlx5_core_dev *dev,
728
733
}
729
734
730
735
ns = mlx5_get_flow_namespace (dev , params -> ns_type );
736
+ if (!ns ) {
737
+ kvfree (ttc );
738
+ return ERR_PTR (- EOPNOTSUPP );
739
+ }
740
+
731
741
groups = use_l4_type ? & ttc_groups [TTC_GROUPS_USE_L4_TYPE ] :
732
742
& ttc_groups [TTC_GROUPS_DEFAULT ];
733
743
You can’t perform that action at this time.
0 commit comments