Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a93a117e authored by Latchesar Ionkov's avatar Latchesar Ionkov Committed by Linus Torvalds
Browse files

[PATCH] v9fs: fix memory leak in v9fs dentry code



Assign the appropriate dentry operations to the dentry. Fixes memory leak.

Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8c4b8add
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {