[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>

authored by

Latchesar Ionkov and committed by
Linus Torvalds
a93a117e 8c4b8add

+2
+2
fs/9p/vfs_inode.c
··· 427 427 428 428 v9fs_mistat2inode(fcall->params.rstat.stat, file_inode, sb); 429 429 kfree(fcall); 430 + fcall = NULL; 431 + file_dentry->d_op = &v9fs_dentry_operations; 430 432 d_instantiate(file_dentry, file_inode); 431 433 432 434 if (perm & V9FS_DMDIR) {