]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IPV4: Fix OOPS'er added to netlink fib.
authorSergey Vlasov <vsu@altlinux.ru>
Fri, 27 Apr 2007 09:18:35 +0000 (02:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 21:26:22 +0000 (14:26 -0700)
commit6af3412cff50b9a7b12b7b9cf6f01b34fbae4624
tree3b2d9f0bce81fd99f8f0ffae898be7381c51ba11
parentdf1910725a718efaca39274243262644e0e023ea
IPV4: Fix OOPS'er added to netlink fib.

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/fib_frontend.c