Skip to content

Commit

Permalink
[PATCH] v9fs: fix memory leak in v9fs dentry code
Browse files Browse the repository at this point in the history
Assign the appropriate dentry operations to the dentry. Fixes memory leak.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Latchesar Ionkov authored and Linus Torvalds committed Nov 28, 2005
1 parent 8c4b8ad commit a93a117
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ v9fs_create(struct inode *dir,

v9fs_mistat2inode(fcall->params.rstat.stat, file_inode, sb);
kfree(fcall);
fcall = NULL;
file_dentry->d_op = &v9fs_dentry_operations;
d_instantiate(file_dentry, file_inode);

if (perm & V9FS_DMDIR) {
Expand Down

0 comments on commit a93a117

Please sign in to comment.