diff options
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r-- | fs/proc/proc_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index a2bf369c923d..68c06ae7888c 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -135,7 +135,7 @@ static struct dentry *proc_tgid_net_lookup(struct inode *dir, | |||
135 | de = ERR_PTR(-ENOENT); | 135 | de = ERR_PTR(-ENOENT); |
136 | net = get_proc_task_net(dir); | 136 | net = get_proc_task_net(dir); |
137 | if (net != NULL) { | 137 | if (net != NULL) { |
138 | de = proc_lookup_de(net->proc_net, dir, dentry); | 138 | de = proc_lookup_de(dir, dentry, net->proc_net); |
139 | put_net(net); | 139 | put_net(net); |
140 | } | 140 | } |
141 | return de; | 141 | return de; |
@@ -172,7 +172,7 @@ static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx) | |||
172 | ret = -EINVAL; | 172 | ret = -EINVAL; |
173 | net = get_proc_task_net(file_inode(file)); | 173 | net = get_proc_task_net(file_inode(file)); |
174 | if (net != NULL) { | 174 | if (net != NULL) { |
175 | ret = proc_readdir_de(net->proc_net, file, ctx); | 175 | ret = proc_readdir_de(file, ctx, net->proc_net); |
176 | put_net(net); | 176 | put_net(net); |
177 | } | 177 | } |
178 | return ret; | 178 | return ret; |