diff options
Diffstat (limited to 'net/sched/act_police.c')
-rw-r--r-- | net/sched/act_police.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 272d8e924cf6..ef246d87e68b 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c | |||
@@ -177,10 +177,12 @@ static int tcf_act_police_locate(struct net *net, struct nlattr *nla, | |||
177 | if (bind) { | 177 | if (bind) { |
178 | police->tcf_bindcnt += 1; | 178 | police->tcf_bindcnt += 1; |
179 | police->tcf_refcnt += 1; | 179 | police->tcf_refcnt += 1; |
180 | return 0; | ||
180 | } | 181 | } |
181 | if (ovr) | 182 | if (ovr) |
182 | goto override; | 183 | goto override; |
183 | return ret; | 184 | /* not replacing */ |
185 | return -EEXIST; | ||
184 | } | 186 | } |
185 | } | 187 | } |
186 | 188 | ||
@@ -407,7 +409,6 @@ static struct tc_action_ops act_police_ops = { | |||
407 | .act = tcf_act_police, | 409 | .act = tcf_act_police, |
408 | .dump = tcf_act_police_dump, | 410 | .dump = tcf_act_police_dump, |
409 | .cleanup = tcf_act_police_cleanup, | 411 | .cleanup = tcf_act_police_cleanup, |
410 | .lookup = tcf_hash_search, | ||
411 | .init = tcf_act_police_locate, | 412 | .init = tcf_act_police_locate, |
412 | .walk = tcf_act_police_walker | 413 | .walk = tcf_act_police_walker |
413 | }; | 414 | }; |