ipv4: Make output route lookup return rtable directly.

Instead of on the stack.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2011-03-02 14:31:35 -08:00
orang tua 452edd598f
melakukan b23dd4fe42
36 mengubah file dengan 267 tambahan dan 224 penghapusan

Melihat File

@@ -354,7 +354,8 @@ static struct rtable *find_route(struct t3cdev *dev, __be32 local_ip,
}
};
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;
}