summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-09-27 09:57:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-09-27 09:57:03 -0700
commitd266640c6c760c9bc215bf5a3ece122ca488b6f5 (patch)
tree985730170ea1f7e6591dbe6a6d69131424595519
parent64d34cef2a32331fedabf25ea8fa8a30128af9f7 (diff)
parent77be3641f3e3a56e42a5ed889372ef395a933f3c (diff)
downloadlinux-stable-d266640c6c760c9bc215bf5a3ece122ca488b6f5.tar.gz
linux-stable-d266640c6c760c9bc215bf5a3ece122ca488b6f5.zip
Merge tag 'driver-core-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core
Pull driver core fix from Danilo Krummrich: - Suppress spurious "debugfs is not initialized yet" boot warnings when the caller passes an error parent to debugfs file creation; callers propagating an earlier failure should not trigger the warning * tag 'driver-core-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core: debugfs: don't warn about uninitialized debugfs for an error parent
-rw-r--r--fs/debugfs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index e054e6291..a4d08bd37 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -368,6 +368,9 @@ static struct dentry *debugfs_start_creating(const char *name,
if (!debugfs_enabled)
return ERR_PTR(-EPERM);
+ if (IS_ERR(parent))
+ return parent;
+
if (!debugfs_initialized()) {
pr_err("Unable to create file '%s', debugfs is not initialized yet\n",
name);
@@ -376,9 +379,6 @@ static struct dentry *debugfs_start_creating(const char *name,
pr_debug("creating file '%s'\n", name);
- if (IS_ERR(parent))
- return parent;
-
error = simple_pin_fs(&debug_fs_type, &debugfs_mount,
&debugfs_mount_count);
if (error) {