diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 63707abcbeb3e84b588b811d5c6113cf45bf4b70..c69927bed4effd6002f2021ca66c1b641acebc85 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c @@ -147,6 +147,7 @@ static struct dentry *reconnect_one(struct vfsmount *mnt, tmp = lookup_one_len_unlocked(nbuf, parent, strlen(nbuf)); if (IS_ERR(tmp)) { dprintk("%s: lookup failed: %d\n", __func__, PTR_ERR(tmp)); + err = PTR_ERR(tmp); goto out_err; } if (tmp != dentry) {