patch file systems with the acl checks
[lunaix-os.git] / lunaix-os / kernel / usrscope.c
index 334cad7c18a7ea404395b876c75b537d10caf79b..5eba922345559b2f8e681a74f42411be8be45d42 100644 (file)
@@ -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++;
 }