NFS: Don't trace an uninitialised value
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Nov 2021 16:35:26 +0000 (12:35 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Nov 2021 16:58:41 +0000 (12:58 -0400)
commit4798f8058d6b6bcfaedf5560fc28a83f404cbb57
tree5b0c0ddcaa07c1a4486890bda2b9e67ad2bbf37d
parent3be232f11a3cc9b0ef0795e39fa11bdb8e422a06
NFS: Don't trace an uninitialised value

If fhandle is NULL or fattr is NULL, then 'error' is uninitialised.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
fs/nfs/dir.c