From: Benjamin Thery Date: Thu, 31 Jan 2008 03:09:35 +0000 (-0800) Subject: [NETNS]: Add missing initialization of nl_info.nl_net in rtm_to_fib6_config() X-Git-Tag: v2.6.25-rc1~1089^2~111 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2216b48376c40cf6984398d478a01b55e76c5434;p=karo-tx-linux.git [NETNS]: Add missing initialization of nl_info.nl_net in rtm_to_fib6_config() Add missing initialization of the new nl_info.nl_net field in rtm_to_fib6_config(). This will be needed the store network namespace associated to the fib6_config struct. Signed-off-by: Benjamin Thery Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 4004c5f0b8d7..162cb66d4605 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1960,6 +1960,7 @@ static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid; cfg->fc_nlinfo.nlh = nlh; + cfg->fc_nlinfo.nl_net = skb->sk->sk_net; if (tb[RTA_GATEWAY]) { nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16);