Commit 4798f805 authored by Trond Myklebust's avatar Trond Myklebust

NFS: Don't trace an uninitialised value

If fhandle is NULL or fattr is NULL, then 'error' is uninitialised.
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
parent 3be232f1
...@@ -1814,7 +1814,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in ...@@ -1814,7 +1814,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in
} }
nfs_set_verifier(dentry, dir_verifier); nfs_set_verifier(dentry, dir_verifier);
out_label: 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); nfs4_label_free(label);
out: out:
nfs_free_fattr(fattr); nfs_free_fattr(fattr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment