projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] wext: extend MLME support
[firefly-linux-kernel-4.4.55.git]
/
include
/
linux
/
nsproxy.h
diff --git
a/include/linux/nsproxy.h
b/include/linux/nsproxy.h
index f6baecdeecd6d1dd15dcaa11482d5fa87121ec77..971d1c6dfc4bf0dbffff439c5ee643fc5547832e 100644
(file)
--- a/
include/linux/nsproxy.h
+++ b/
include/linux/nsproxy.h
@@
-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