author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-02-18 11:08:17 +0100
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-02-18 16:23:46 +0100
commit: bc6de804d36b3709d54fa22bd128cbac91c11526
parent: 471b12c43f376d5203dbff0e91316eea11f6f4df
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 2fcf66473436..bbeb563cbe78 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -297,7 +297,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
{
struct dentry *dentry;
- if (IS_ERR(parent))
+ if (!debugfs_initialized() || IS_ERR_OR_NULL(name) || IS_ERR(parent))
return NULL;
if (!parent)