diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 210c5945ac2b..36cb1012c7e1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1814,7 +1814,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in } 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);