diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-05-11 15:57:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 18:53:25 -0400 |
commit | e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64 (patch) | |
tree | dac2ac91897e13820e331528fccbf43892cf424a | |
parent | 6938f8558167fd1d30233018976ebe310fa6f69b (diff) | |
download | linux-exynos-e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64.tar.gz linux-exynos-e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64.tar.bz2 linux-exynos-e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64.zip |
netns: return RTM_NEWNSID instead of RTM_GETNSID on a get
Usually, RTM_NEWxxx is returned on a get (same as a dump).
Fixes: 0c7aecd4bde4 ("netns: add rtnl cmd to add and get peer netns ids")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/net_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 78fc04ad36fc..572af0011997 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -601,7 +601,7 @@ static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh) } err = rtnl_net_fill(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0, - RTM_GETNSID, net, peer, -1); + RTM_NEWNSID, net, peer, -1); if (err < 0) goto err_out; |