Documentation: bindings: add dt documentation for Rockchip PCIe PHY
[firefly-linux-kernel-4.4.55.git] / fs / namespace.c
index 3bab9dae798a7700f9e698c8274a4ac10eb2f91c..33064fcbfff94e50ab642662684f122888e144b6 100644 (file)
@@ -2401,8 +2401,10 @@ static int do_new_mount(struct path *path, const char *fstype, int flags,
                        mnt_flags |= MNT_NODEV | MNT_LOCK_NODEV;
                }
                if (type->fs_flags & FS_USERNS_VISIBLE) {
-                       if (!fs_fully_visible(type, &mnt_flags))
+                       if (!fs_fully_visible(type, &mnt_flags)) {
+                               put_filesystem(type);
                                return -EPERM;
+                       }
                }
        }