aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r--fs/proc/proc_net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
index ab232ad2e6f9..b224a28e0c15 100644
--- a/fs/proc/proc_net.c
+++ b/fs/proc/proc_net.c
@@ -87,6 +87,14 @@ int seq_release_net(struct inode *ino, struct file *f)
87} 87}
88EXPORT_SYMBOL_GPL(seq_release_net); 88EXPORT_SYMBOL_GPL(seq_release_net);
89 89
90int single_release_net(struct inode *ino, struct file *f)
91{
92 struct seq_file *seq = f->private_data;
93 put_net(seq->private);
94 return single_release(ino, f);
95}
96EXPORT_SYMBOL_GPL(single_release_net);
97
90static struct net *get_proc_task_net(struct inode *dir) 98static struct net *get_proc_task_net(struct inode *dir)
91{ 99{
92 struct task_struct *task; 100 struct task_struct *task;