Commit b3d0e04
net: sched: cls_matchall: Undo tcf_bind_filter in case of failure after mall_set_parms
In case an error occurred after mall_set_parms executed successfully, we
must undo the tcf_bind_filter call it issues.
Fix that by calling tcf_unbind_filter in err_replace_hw_filter label.
Fixes: ec2507d ("net/sched: cls_matchall: Fix error path")
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 0dd1805 commit b3d0e04
1 file changed
Lines changed: 12 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 162 | | |
183 | 163 | | |
184 | 164 | | |
| |||
187 | 167 | | |
188 | 168 | | |
189 | 169 | | |
| 170 | + | |
190 | 171 | | |
191 | 172 | | |
192 | 173 | | |
| |||
226 | 207 | | |
227 | 208 | | |
228 | 209 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
232 | 213 | | |
233 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
234 | 221 | | |
235 | 222 | | |
236 | 223 | | |
| |||
246 | 233 | | |
247 | 234 | | |
248 | 235 | | |
| 236 | + | |
| 237 | + | |
249 | 238 | | |
250 | 239 | | |
251 | 240 | | |
| |||
0 commit comments