Add the zpool and filesystem versions
[zfs.git] / module / zfs / zpl_inode.c
index 75d299b..888dc17 100644 (file)
@@ -262,7 +262,7 @@ zpl_follow_link(struct dentry *dentry, struct nameidata *nd)
        uio.uio_resid = (MAXPATHLEN - 1);
        uio.uio_segflg = UIO_SYSSPACE;
 
-       error = zfs_readlink(ip, &uio, cr);
+       error = -zfs_readlink(ip, &uio, cr);
        if (error) {
                kmem_free(link, MAXPATHLEN);
                nd_set_link(nd, ERR_PTR(error));