projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87305c4
)
netns: fix get_net_ns_by_fd(int pid) typo
author
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 18 Nov 2016 09:41:46 +0000
(09:41 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Nov 2016 19:01:58 +0000
(14:01 -0500)
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>
include/net/net_namespace.h
patch
|
blob
|
history
diff --git
a/include/net/net_namespace.h
b/include/net/net_namespace.h
index fc4f757107df0b51eae83781324337001ed7fb6d..0940598c002ff7fee832f9cf670b8006d0202ddc 100644
(file)
--- 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
pi
d);
+struct net *get_net_ns_by_fd(int
f
d);
#ifdef CONFIG_SYSCTL
void ipx_register_sysctl(void);