Commit afaef734 authored by Yan, Zheng's avatar Yan, Zheng Committed by David S. Miller
Browse files

fib_rules: fix unresolved_rules counting

we should decrease ops->unresolved_rules when deleting a unresolved rule.
Signed-off-by: default avatarZheng Yan <>
Acked-by: default avatarEric Dumazet <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1b23a3e3
......@@ -475,8 +475,11 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
if (rule->action == FR_ACT_GOTO)
if (rule->action == FR_ACT_GOTO) {
if (rtnl_dereference(rule->ctarget) == NULL)
* Check if this rule is a target to any of them. If so,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment