1 From davem@davemloft.net Fri Apr 27 02:18:34 2007
2 From: Sergey Vlasov <vsu@altlinux.ru>
3 Date: Fri, 27 Apr 2007 02:18:35 -0700 (PDT)
4 Subject: IPV4: Fix OOPS'er added to netlink fib.
6 Message-ID: <20070427.021835.115909046.davem@davemloft.net>
8 From: Sergey Vlasov <vsu@altlinux.ru>
10 [IPV4] nl_fib_lookup: Initialise res.r before fib_res_put(&res)
12 When CONFIG_IP_MULTIPLE_TABLES is enabled, the code in nl_fib_lookup()
13 needs to initialize the res.r field before fib_res_put(&res) - unlike
14 fib_lookup(), a direct call to ->tb_lookup does not set this field.
16 Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
17 Signed-off-by: David S. Miller <davem@davemloft.net>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 net/ipv4/fib_frontend.c | 4 ++++
22 1 file changed, 4 insertions(+)
24 --- a/net/ipv4/fib_frontend.c
25 +++ b/net/ipv4/fib_frontend.c
26 @@ -773,6 +773,10 @@ static void nl_fib_lookup(struct fib_res
28 .scope = frn->fl_scope } } };
30 +#ifdef CONFIG_IP_MULTIPLE_TABLES