diff mbox

netns: fix get_net_ns_by_fd(int pid) typo

Message ID 1479462106-28529-1-git-send-email-stefanha@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Stefan Hajnoczi Nov. 18, 2016, 9:41 a.m. UTC
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>
---
 include/net/net_namespace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rami Rosen Nov. 18, 2016, 5:40 p.m. UTC | #1
On 18 November 2016 at 11:41, Stefan Hajnoczi <stefanha@redhat.com> wrote:
> The argument to get_net_ns_by_fd() is a /proc/$PID/ns/net file
> descriptor not a pid.  Fix the typo.
>

Acked-by: Rami Rosen <roszenrami@gmail.com>
David Miller Nov. 18, 2016, 7:02 p.m. UTC | #2
From: Stefan Hajnoczi <stefanha@redhat.com>
Date: Fri, 18 Nov 2016 09:41:46 +0000

> 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>

Applied.
diff mbox

Patch

diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index fc4f757..0940598 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);