OSDN Git Service

pinctrl: dra: dt-bindings: Fix output pull up/down
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / fs / posix_acl.c
index 9e363e4..0855f77 100644 (file)
@@ -246,6 +246,12 @@ posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p)
        umode_t mode = 0;
        int not_equiv = 0;
 
+       /*
+        * A null ACL can always be presented as mode bits.
+        */
+       if (!acl)
+               return 0;
+
        FOREACH_ACL_ENTRY(pa, acl, pe) {
                switch (pa->e_tag) {
                        case ACL_USER_OBJ: