diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-11-18 04:41:46 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-11-18 14:01:58 -0500 |
| commit | 0f5258cd91e9d78a1ee30696314bec3c33321a93 (patch) | |
| tree | 8ea1d4574b80bf97542a49098519a277f7ec2885 /include/net | |
| 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/net')
| -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, | |||
| 170 | extern struct list_head net_namespace_list; | 170 | extern struct list_head net_namespace_list; |
| 171 | 171 | ||
| 172 | struct net *get_net_ns_by_pid(pid_t pid); | 172 | struct net *get_net_ns_by_pid(pid_t pid); |
| 173 | struct net *get_net_ns_by_fd(int pid); | 173 | struct net *get_net_ns_by_fd(int fd); |
| 174 | 174 | ||
| 175 | #ifdef CONFIG_SYSCTL | 175 | #ifdef CONFIG_SYSCTL |
| 176 | void ipx_register_sysctl(void); | 176 | void ipx_register_sysctl(void); |
