Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129993
b: refs/heads/master
c: 3ddf1e7
h: refs/heads/master
i:
  129991: 3cec39e
v: v3
  • Loading branch information
Miklos Szeredi authored and Miklos Szeredi committed Jan 26, 2009
1 parent 5eab169 commit 17f96e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: bb875b38dc5e343bdb696b2eab8233e4d195e208
refs/heads/master: 3ddf1e7f57237ac7c5d5bfb7058f1ea4f970b661
9 changes: 7 additions & 2 deletions trunk/fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,15 +829,20 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
if (!file)
return -EINVAL;

if (file->f_op != &fuse_dev_operations)
if (file->f_op != &fuse_dev_operations) {
fput(file);
return -EINVAL;
}

fc = kmalloc(sizeof(*fc), GFP_KERNEL);
if (!fc)
if (!fc) {
fput(file);
return -ENOMEM;
}

err = fuse_conn_init(fc, sb);
if (err) {
fput(file);
kfree(fc);
return err;
}
Expand Down

0 comments on commit 17f96e8

Please sign in to comment.