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 <[email protected]>
Acked-by: Rami Rosen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Stefan Hajnoczi 2016-11-18 09:41:46 +00:00 • committed by David S. Miller
commit 0f5258cd91

View file

@ -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);