git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: Fix order passed to iommu_unmap
[safe/jmp/linux-2.6]
/
kernel
/
user_namespace.c
diff --git
a/kernel/user_namespace.c
b/kernel/user_namespace.c
index
076c7c8
..
b2d70d3
100644
(file)
--- a/
kernel/user_namespace.c
+++ b/
kernel/user_namespace.c
@@
-54,8
+54,8
@@
int create_user_ns(struct cred *new)
#endif
/* tgcred will be cleared in our caller bc CLONE_THREAD won't be set */
#endif
/* tgcred will be cleared in our caller bc CLONE_THREAD won't be set */
- /*
alloc_uid() incremented the userns refcount. Just set it to 1
*/
-
kref_set(&ns->kref, 1
);
+ /*
root_user holds a reference to ns, our reference can be dropped
*/
+
put_user_ns(ns
);
return 0;
}
return 0;
}