mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
87305c4cd2
commit
0f5258cd91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue