[patch 1/1][NETNS] fix compilation error [message #23207] |
Wed, 14 November 2007 10:43  |
Daniel Lezcano
Messages: 417 Registered: June 2006
|
Senior Member |
|
|
fix rtentry_to_fib_config compilation error.
Replaced the init_net() function call to &init_net.
Signed-off-by: Daniel Lezcano <dlezcano@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;
--
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
|
|
|
|
Re: [patch 1/1][NETNS] fix compilation error [message #23313 is a reply to message #23209] |
Thu, 15 November 2007 13:29  |
ebiederm
Messages: 1354 Registered: February 2006
|
Senior Member |
|
|
"Denis V. Lunev" <den@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@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@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
|
|
|