mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ipv4: Make output route lookup return rtable directly.
Instead of on the stack. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
452edd598f
commit
b23dd4fe42
36 changed files with 267 additions and 224 deletions
|
|
@ -470,7 +470,8 @@ static struct rtable *find_route_ipv4(__be32 saddr, __be32 daddr,
|
|||
}
|
||||
};
|
||||
|
||||
if (ip_route_output_flow(&init_net, &rt, &fl, NULL))
|
||||
rt = ip_route_output_flow(&init_net, &fl, NULL);
|
||||
if (IS_ERR(rt))
|
||||
return NULL;
|
||||
|
||||
return rt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue