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)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:19 +0000 (17:05 +0800)
commit6aaa1e03cb296b1824b3150723909d740f6b293e
treebf1c9d9564d40312905b034092640486b92da433
parentbf5dbba17a6816e0b7f33abc034f5ca089884e10
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: Zefan Li <lizefan@huawei.com>
fs/nfs/inode.c