]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/fib_frontend.c
[IPV4] nl_fib_lookup: Initialise res.r before fib_res_put(&res)
authorSergey Vlasov <vsu@altlinux.ru>
Fri, 27 Apr 2007 09:17:19 +0000 (02:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2007 09:17:19 +0000 (02:17 -0700)
commit912a41a4ab935ce8c4308428ec13fc7f8b1f18f4
treeeb41250e37c65f6af693748a88847a83f641fc49
parentebbd90a730711280142017e482f27ec3fbb4f227
[IPV4] nl_fib_lookup: Initialise res.r before fib_res_put(&res)

When CONFIG_IP_MULTIPLE_TABLES is enabled, the code in nl_fib_lookup()
needs to initialize the res.r field before fib_res_put(&res) - unlike
fib_lookup(), a direct call to ->tb_lookup does not set this field.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c