Skip to content

Commit d3666c1

Browse files
dev-aaront-orggregkh
authored andcommitted
debugfs: Fix default access mode config check
This typo caused debugfs to always behave as if CONFIG_DEBUG_FS_ALLOW_NONE was selected. Fixes: f278809 ("debugfs: Remove broken no-mount mode") Reported-by: Mark Brown <broonie@kernel.org> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Aaron Thompson <dev@aaront.org> Link: https://patch.msgid.link/20251202070927.14198-1-dev@null.aaront.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f278809 commit d3666c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/debugfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
static struct vfsmount *debugfs_mount;
3636
static int debugfs_mount_count;
3737
static bool debugfs_registered;
38-
static bool debugfs_enabled __ro_after_init = IS_ENABLED(DEBUG_FS_ALLOW_ALL);
38+
static bool debugfs_enabled __ro_after_init = IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL);
3939

4040
/*
4141
* Don't allow access attributes to be changed whilst the kernel is locked down

0 commit comments

Comments
 (0)