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

Commit eba8f2a8 authored by Sharath Chandra Vurukala's avatar Sharath Chandra Vurukala
Browse files

Revert "fib_rules: fix error in backport of e9919a24d302"



This reverts commit b2fc3516.

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

This reverts commit 1fff19a9.

Change-Id: If18c802f64a41a83721e2ecf06136ac1ae8fa6cb
Signed-off-by: default avatarSharath Chandra Vurukala <sharathv@codeaurora.org>
parent d19081d5
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;
	}