From: Stefan Hajnoczi Date: Fri, 18 Nov 2016 09:41:46 +0000 (+0000) Subject: netns: fix get_net_ns_by_fd(int pid) typo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f5258cd91e9d78a1ee30696314bec3c33321a93;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Rami Rosen Signed-off-by: David S. Miller --- 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);