summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorStefan Hajnoczi2016-11-18 10:41:46 +0100
committerDavid S. Miller2016-11-18 20:01:58 +0100
commit0f5258cd91e9d78a1ee30696314bec3c33321a93 (patch)
tree8ea1d4574b80bf97542a49098519a277f7ec2885 /include/net
parentMerge tag 'mac80211-for-davem-2016-11-18' of git://git.kernel.org/pub/scm/lin... (diff)
downloadkernel-qcow2-linux-0f5258cd91e9d78a1ee30696314bec3c33321a93.tar.gz
kernel-qcow2-linux-0f5258cd91e9d78a1ee30696314bec3c33321a93.tar.xz
kernel-qcow2-linux-0f5258cd91e9d78a1ee30696314bec3c33321a93.zip
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/net')
-rw-r--r--include/net/net_namespace.h2
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);