Message ID | 161364860464.20312.2309189013450325518.tip-bot2@tip-bot2 |
---|---|
State | Accepted |
Commit | bc6de804d36b3709d54fa22bd128cbac91c11526 |
Headers | show |
Series |
|
Related | show |
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 2fcf664..bbeb563 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)