Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=912a41a4ab935ce8c4308428ec13fc7f8b1f18f4
Commit:     912a41a4ab935ce8c4308428ec13fc7f8b1f18f4
Parent:     ebbd90a730711280142017e482f27ec3fbb4f227
Author:     Sergey Vlasov <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 27 02:17:19 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 02:17:19 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/fib_frontend.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 953dd45..837f295 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -777,6 +777,10 @@ static void nl_fib_lookup(struct fib_result_nl *frn, 
struct fib_table *tb )
                                                            .tos = frn->fl_tos,
                                                            .scope = 
frn->fl_scope } } };
 
+#ifdef CONFIG_IP_MULTIPLE_TABLES
+       res.r = NULL;
+#endif
+
        frn->err = -ENOENT;
        if (tb) {
                local_bh_disable();
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to