Skip to content

Commit 4798f80

Browse files
author
Trond Myklebust
committed
NFS: Don't trace an uninitialised value
If fhandle is NULL or fattr is NULL, then 'error' is uninitialised. Reported-by: Nathan Chancellor <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]>
1 parent 3be232f commit 4798f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in
18141814
}
18151815
nfs_set_verifier(dentry, dir_verifier);
18161816
out_label:
1817-
trace_nfs_lookup_exit(dir, dentry, flags, error);
1817+
trace_nfs_lookup_exit(dir, dentry, flags, PTR_ERR_OR_ZERO(res));
18181818
nfs4_label_free(label);
18191819
out:
18201820
nfs_free_fattr(fattr);

0 commit comments

Comments
 (0)