[PATCH] v9fs: fix memory leak in v9fs dentry code
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>
This commit is contained in:
parent
8c4b8add83
commit
a93a117eaa
@ -427,6 +427,8 @@ v9fs_create(struct inode *dir,
|
|||||||
|
|
||||||
v9fs_mistat2inode(fcall->params.rstat.stat, file_inode, sb);
|
v9fs_mistat2inode(fcall->params.rstat.stat, file_inode, sb);
|
||||||
kfree(fcall);
|
kfree(fcall);
|
||||||
|
fcall = NULL;
|
||||||
|
file_dentry->d_op = &v9fs_dentry_operations;
|
||||||
d_instantiate(file_dentry, file_inode);
|
d_instantiate(file_dentry, file_inode);
|
||||||
|
|
||||||
if (perm & V9FS_DMDIR) {
|
if (perm & V9FS_DMDIR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user