git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch file systems with the acl checks
[lunaix-os.git]
/
lunaix-os
/
kernel
/
usrscope.c
diff --git
a/lunaix-os/kernel/usrscope.c
b/lunaix-os/kernel/usrscope.c
index 334cad7c18a7ea404395b876c75b537d10caf79b..5eba922345559b2f8e681a74f42411be8be45d42 100644
(file)
--- a/
lunaix-os/kernel/usrscope.c
+++ b/
lunaix-os/kernel/usrscope.c
@@
-30,6
+30,10
@@
__alloc_groups_obj(unsigned int len)
static inline void
__ref_groups_obj(struct ugroup_obj* ugo)
{
+ if (unlikely(!ugo)) {
+ return;
+ }
+
ugo->refs++;
}