Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9379
b: refs/heads/master
c: ee4e527
h: refs/heads/master
i:
  9377: d27a621
  9375: fe6f4a2
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Sep 28, 2005
1 parent 516f373 commit 545dcd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 909021ea7a8f4ef13af54935b87b03a20906e08a
refs/heads/master: ee4e52719ce474af339f4b81ece2ce9ecf920dfd
6 changes: 6 additions & 0 deletions trunk/fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ static int fuse_lookup_iget(struct inode *dir, struct dentry *entry,
fuse_lookup_init(req, dir, entry, &outarg);
request_send(fc, req);
err = req->out.h.error;
if (!err && (!outarg.nodeid || outarg.nodeid == FUSE_ROOT_ID))
err = -EIO;
if (!err) {
inode = fuse_iget(dir->i_sb, outarg.nodeid, outarg.generation,
&outarg.attr);
Expand Down Expand Up @@ -152,6 +154,10 @@ static int create_new_entry(struct fuse_conn *fc, struct fuse_req *req,
fuse_put_request(fc, req);
return err;
}
if (!outarg.nodeid || outarg.nodeid == FUSE_ROOT_ID) {
fuse_put_request(fc, req);
return -EIO;
}
inode = fuse_iget(dir->i_sb, outarg.nodeid, outarg.generation,
&outarg.attr);
if (!inode) {
Expand Down

0 comments on commit 545dcd3

Please sign in to comment.