]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nfs_lookup_revalidate(): fix a leak
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Nov 2012 03:04:36 +0000 (22:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Nov 2012 03:04:36 +0000 (22:04 -0500)
commitc44600c9d1de64314c2bd58103f15acb53e10073
tree0b3541b04e60cb046f05a3725ce64c45c89adaa8
parent696199f8ccf7fc6d17ef89c296ad3b6c78c52d9c
nfs_lookup_revalidate(): fix a leak

We are leaking fattr and fhandle if we decide that dentry is not to
be invalidated, after all (e.g. happens to be a mountpoint).  Just
free both before that...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/dir.c