Signed-off-by: Hannes Frederic Sowa <han...@stressinduktion.org> --- net/ipv4/devinet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 82a7389ec86faa..01bdff8a957ae1 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -838,7 +838,7 @@ static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, goto errout_free; } } else { - ifa->afnetns = afnetns_get(net->afnet_ns); + ifa->afnetns = afnetns_get(current->nsproxy->afnet_ns); } #else if (tb[IFA_AFNETNS_FD]) { -- 2.9.3