[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251202070927.14198-1-dev@null.aaront.org>
Date: Tue, 2 Dec 2025 07:12:40 +0000
From: Aaron Thompson <dev@...ont.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Danilo Krummrich <dakr@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Aaron Thompson <dev@...ont.org>,
Mark Brown <broonie@...nel.org>,
Chen-Yu Tsai <wenst@...omium.org>
Subject: [PATCH] debugfs: Fix default access mode config check
This typo caused debugfs to always behave as if
CONFIG_DEBUG_FS_ALLOW_NONE was selected.
Fixes: f278809475f6 ("debugfs: Remove broken no-mount mode")
Reported-by: Mark Brown <broonie@...nel.org>
Tested-by: Chen-Yu Tsai <wenst@...omium.org>
Signed-off-by: Aaron Thompson <dev@...ont.org>
---
fs/debugfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 0284b0256195..3b3713fcbbcb 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -35,7 +35,7 @@
static struct vfsmount *debugfs_mount;
static int debugfs_mount_count;
static bool debugfs_registered;
-static bool debugfs_enabled __ro_after_init = IS_ENABLED(DEBUG_FS_ALLOW_ALL);
+static bool debugfs_enabled __ro_after_init = IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL);
/*
* Don't allow access attributes to be changed whilst the kernel is locked down
base-commit: f278809475f6835b56de78b28dc2cc0c7e2c20a4
--
2.47.3
Powered by blists - more mailing lists