Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41070
b: refs/heads/master
c: 701e054
h: refs/heads/master
v: v3
  • Loading branch information
Vasily Tarasov authored and Linus Torvalds committed Nov 25, 2006
1 parent 2b390ef commit 360eda9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d51013ed2f2b6a5d2369b7fbbd989df1f6369e2
refs/heads/master: 701e054e0c2db82359f0454c7ed4fd24346d52eb
3 changes: 2 additions & 1 deletion trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ static int mountstats_open(struct inode *inode, struct file *file)

if (task) {
task_lock(task);
namespace = task->nsproxy->namespace;
if (task->nsproxy)
namespace = task->nsproxy->namespace;
if (namespace)
get_namespace(namespace);
task_unlock(task);
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/linux/nsproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ static inline void exit_task_namespaces(struct task_struct *p)
{
struct nsproxy *ns = p->nsproxy;
if (ns) {
put_nsproxy(ns);
task_lock(p);
p->nsproxy = NULL;
task_unlock(p);
put_nsproxy(ns);
}
}
#endif

0 comments on commit 360eda9

Please sign in to comment.