Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26179
b: refs/heads/master
c: 8aa09a5
h: refs/heads/master
i:
  26177: 3eab390
  26175: 9db4168
v: v3
  • Loading branch information
Miklos Szeredi committed Apr 26, 2006
1 parent fa9bd02 commit 24edb2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dbbcb120570d747b00783820ee02d1e1bcf63de
refs/heads/master: 8aa09a50b5d9dbdf627f79e19d72d82994348089
13 changes: 8 additions & 5 deletions trunk/fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,6 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
if (file->f_op != &fuse_dev_operations)
return -EINVAL;

/* Setting file->private_data can't race with other mount()
instances, since BKL is held for ->get_sb() */
if (file->private_data)
return -EINVAL;

fc = new_conn();
if (!fc)
return -ENOMEM;
Expand Down Expand Up @@ -540,6 +535,12 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
if (err)
goto err_free_req;

/* Setting file->private_data can't race with other mount()
instances, since BKL is held for ->get_sb() */
err = -EINVAL;
if (file->private_data)
goto err_kobject_del;

sb->s_root = root_dentry;
fc->mounted = 1;
fc->connected = 1;
Expand All @@ -556,6 +557,8 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)

return 0;

err_kobject_del:
kobject_del(&fc->kobj);
err_free_req:
fuse_request_free(init_req);
err_put_root:
Expand Down

0 comments on commit 24edb2a

Please sign in to comment.