[Devel] Re: [patch 1/1][NETNS] fix compilation error
Eric W. Biederman
ebiederm at xmission.com
Thu Nov 15 05:29:09 PST 2007
"Denis V. Lunev" <den at sw.ru> writes:
> done by the next Eric's patch. Just pushed
>
> Daniel Lezcano wrote:
>> fix rtentry_to_fib_config compilation error.
>> Replaced the init_net() function call to &init_net.
>>
>> Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
>> ---
>> net/ipv4/fib_frontend.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> Index: linux-2.6-netns/net/ipv4/fib_frontend.c
>> ===================================================================
>> --- linux-2.6-netns.orig/net/ipv4/fib_frontend.c
>> +++ linux-2.6-netns/net/ipv4/fib_frontend.c
>> @@ -294,7 +294,7 @@ static int rtentry_to_fib_config(int cmd
>> memset(cfg, 0, sizeof(*cfg));
>> cfg->fc_nlinfo.pid = 0;
>> cfg->fc_nlinfo.nlh = NULL;
>> - cfg->fc_nlinfo.net = init_net();
>> + cfg->fc_nlinfo.net = &init_net;
>>
>> if (rt->rt_dst.sa_family != AF_INET)
>> return -EAFNOSUPPORT;
>>
Oops. Looks like some more old cruft I have failed to find and fix.
The joy of refactoring through a series of patches...
Eric
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list