Re: [patch 1/1][NETNS] fix compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Denis V. Lunev" <den@xxxxx> 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@xxxxxxxxxx>
>> ---
>>  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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux