Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ecfdc8c5424079393a9b05e8a5aaf5c6873029f6
Commit:     ecfdc8c5424079393a9b05e8a5aaf5c6873029f6
Parent:     84a885f44961c17a91cae9a9c03e4b3dae5d8d94
Author:     Denis V. Lunev <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 21 17:35:06 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:10:23 2008 -0800

    [NETNS]: Pass correct namespace in ip_rt_get_source.
    
    ip_rt_get_source is the infamous place for which dst_ifdown kludges
    have been implemented. This means that rt->u.dst.dev can be safely
    dereferrenced obtain nd_net.
    
    Signed-off-by: Denis V. Lunev <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/route.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index f988ae3..27e0f81 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1559,7 +1559,7 @@ void ip_rt_get_source(u8 *addr, struct rtable *rt)
 
        if (rt->fl.iif == 0)
                src = rt->rt_src;
-       else if (fib_lookup(&init_net, &rt->fl, &res) == 0) {
+       else if (fib_lookup(rt->u.dst.dev->nd_net, &rt->fl, &res) == 0) {
                src = FIB_RES_PREFSRC(res);
                fib_res_put(&res);
        } else
-
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