nfs: Fix use of uninitialized variable in nfs_getattr()
authorJan Kara <jack@suse.cz>
Thu, 23 Oct 2014 12:02:47 +0000 (14:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:22:54 +0000 (09:22 -0800)
commit29d312e94b2ede1cd3270ed1237a2817032f287d
tree143a82cad504d3f55996958c86fd78339fef7c2f
parentbc2075d558b1395a80c1354665679c8970ba5829
nfs: Fix use of uninitialized variable in nfs_getattr()

commit 16caf5b6101d03335b386e77e9e14136f989be87 upstream.

Variable 'err' needn't be initialized when nfs_getattr() uses it to
check whether it should call generic_fillattr() or not. That can result
in spurious error returns. Initialize 'err' properly.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/inode.c