Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f99165e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "fib_rules: fix error in backport of e9919a24d302""

parents e0d1781b eba8f2a8
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -486,9 +486,8 @@ int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh)
		rule->uid_range = fib_kuid_range_unset;
	}

	if (rule_exists(ops, frh, tb, rule)) {
		err = 0;
		if (nlh->nlmsg_flags & NLM_F_EXCL)
	if ((nlh->nlmsg_flags & NLM_F_EXCL) &&
	    rule_exists(ops, frh, tb, rule)) {
		err = -EEXIST;
		goto errout_free;
	}