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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 12 Nov 2014 19:22:53 +0000 (14:22 -0500)
commit16caf5b6101d03335b386e77e9e14136f989be87
tree659ca6328f8ee845e4b3d3ccf54b857ec1a1a52c
parentb283f9445214d4d573906f919c70caccd27b74ea
nfs: Fix use of uninitialized variable in nfs_getattr()

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>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c