mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
[NET]: Change "not found" return value for rule lookup
This changes the "not found" error return for the lookup function to -ESRCH so that it can be distinguished from the case where a rule or route resulting in -ENETUNREACH has been found during the search. It fixes a bug where if DECnet was compiled with routing support, but no routes were added to the routing table, it was failing to fall back to endnode routing. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9a5ee4cc9e
commit
83886b6b63
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ int fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl,
|
|||
}
|
||||
}
|
||||
|
||||
err = -ENETUNREACH;
|
||||
err = -ESRCH;
|
||||
out:
|
||||
rcu_read_unlock();
|
||||
|
||||
|
|
Loading…
Reference in a new issue