diff options
| -rw-r--r-- | fs/debugfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 96400ab42d13..61e72d44cf94 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
| @@ -254,6 +254,9 @@ static struct dentry *start_creating(const char *name, struct dentry *parent) | |||
| 254 | 254 | ||
| 255 | pr_debug("debugfs: creating file '%s'\n",name); | 255 | pr_debug("debugfs: creating file '%s'\n",name); |
| 256 | 256 | ||
| 257 | if (IS_ERR(parent)) | ||
| 258 | return parent; | ||
| 259 | |||
| 257 | error = simple_pin_fs(&debug_fs_type, &debugfs_mount, | 260 | error = simple_pin_fs(&debug_fs_type, &debugfs_mount, |
| 258 | &debugfs_mount_count); | 261 | &debugfs_mount_count); |
| 259 | if (error) | 262 | if (error) |
