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

Denis V. Lunev den at sw.ru
Wed Nov 14 03:00:38 PST 2007


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;
> 

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list