diff options
| -rw-r--r-- | net/core/fib_rules.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 3231b468bb72..27071ee2a4e1 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
| @@ -475,8 +475,11 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
| 475 | 475 | ||
| 476 | list_del_rcu(&rule->list); | 476 | list_del_rcu(&rule->list); |
| 477 | 477 | ||
| 478 | if (rule->action == FR_ACT_GOTO) | 478 | if (rule->action == FR_ACT_GOTO) { |
| 479 | ops->nr_goto_rules--; | 479 | ops->nr_goto_rules--; |
| 480 | if (rtnl_dereference(rule->ctarget) == NULL) | ||
| 481 | ops->unresolved_rules--; | ||
| 482 | } | ||
| 480 | 483 | ||
| 481 | /* | 484 | /* |
| 482 | * Check if this rule is a target to any of them. If so, | 485 | * Check if this rule is a target to any of them. If so, |
