Skip to content

Commit

Permalink
VFS: pass correct vnode to fs calls in default get_vnode_name
Browse files Browse the repository at this point in the history
The opendir and closedir/free_dircookie hooks were called with
mismatched vnode. It seems only googlefs is actually affected by this,
since all other fs without a get_vnode_name just don't are about the
passed vnode arg to closedir and free_dircookie.

Now I should really get some sleep!
  • Loading branch information
mmuman committed Nov 8, 2015
1 parent 8f4a653 commit c518435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/kernel/fs/vfs.cpp
Expand Up @@ -2528,8 +2528,8 @@ get_vnode_name(struct vnode* vnode, struct vnode* parent, struct dirent* buffer,
}
}

FS_CALL(vnode, close_dir, cookie);
FS_CALL(vnode, free_dir_cookie, cookie);
FS_CALL(parent, close_dir, cookie);
FS_CALL(parent, free_dir_cookie, cookie);
}
return status;
}
Expand Down

0 comments on commit c518435

Please sign in to comment.