forked from Minki/linux
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>
This commit is contained in:
parent
3be232f11a
commit
4798f8058d
@ -1814,7 +1814,7 @@ no_entry:
|
||||
}
|
||||
nfs_set_verifier(dentry, dir_verifier);
|
||||
out_label:
|
||||
trace_nfs_lookup_exit(dir, dentry, flags, error);
|
||||
trace_nfs_lookup_exit(dir, dentry, flags, PTR_ERR_OR_ZERO(res));
|
||||
nfs4_label_free(label);
|
||||
out:
|
||||
nfs_free_fattr(fattr);
|
||||
|
Loading…
Reference in New Issue
Block a user