diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-11-18 09:41:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 14:01:58 -0500 |
commit | 0f5258cd91e9d78a1ee30696314bec3c33321a93 (patch) | |
tree | 8ea1d4574b80bf97542a49098519a277f7ec2885 /include | |
parent | 87305c4cd261664a12cff16740d0c40065bbd07f (diff) |
netns: fix get_net_ns_by_fd(int pid) typo
The argument to get_net_ns_by_fd() is a /proc/$PID/ns/net file
descriptor not a pid. Fix the typo.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Rami Rosen <roszenrami@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/net_namespace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index fc4f757107df..0940598c002f 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -170,7 +170,7 @@ static inline struct net *copy_net_ns(unsigned long flags, extern struct list_head net_namespace_list; struct net *get_net_ns_by_pid(pid_t pid); -struct net *get_net_ns_by_fd(int pid); +struct net *get_net_ns_by_fd(int fd); #ifdef CONFIG_SYSCTL void ipx_register_sysctl(void); |