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

Commit 79ba2176 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Revert "fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied"



The fib_rules change was incorrect and will be reverted upstream soon.

Drop it now so that devices start working again.

Bug: 133653863
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c8774865
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -486,8 +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)) {
		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;
	}