Commit 1619bdf
net/mlx5: HWS, Add error checking to hws_bwc_rule_complex_hash_node_get()
Check for if ida_alloc() or rhashtable_lookup_get_insert_fast() fails.
Fixes: 17e0acc ("net/mlx5: HWS, support complex matchers")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Link: https://patch.msgid.link/aEmBONjyiF6z5yCV@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 9337c54 commit 1619bdf
File tree
1 file changed
+17
-2
lines changed- drivers/net/ethernet/mellanox/mlx5/core/steering/hws
1 file changed
+17
-2
lines changedLines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
| 1073 | + | |
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | | - | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1082 | 1086 | | |
1083 | 1087 | | |
1084 | 1088 | | |
| |||
1094 | 1098 | | |
1095 | 1099 | | |
1096 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1097 | 1106 | | |
1098 | 1107 | | |
1099 | 1108 | | |
| |||
1112 | 1121 | | |
1113 | 1122 | | |
1114 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1115 | 1130 | | |
1116 | 1131 | | |
1117 | 1132 | | |
| |||
0 commit comments