aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/zpl_inode.c
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2011-02-17 17:48:06 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2011-02-17 17:48:06 +0000
commit5095000169f695ea6b65d74da917c3f465d05aab (patch)
tree147ca67015591359597862f11a44ab4c20124afc /module/zfs/zpl_inode.c
parentf03e41e8da6d184039ea3b03ba4937f4786a3f22 (diff)
downloadsrc-5095000169f695ea6b65d74da917c3f465d05aab.tar.gz
src-5095000169f695ea6b65d74da917c3f465d05aab.zip
Diffstat (limited to 'module/zfs/zpl_inode.c')
-rw-r--r--module/zfs/zpl_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c
index 75d299b477ec..888dc17cc45d 100644
--- a/module/zfs/zpl_inode.c
+++ b/module/zfs/zpl_inode.c
@@ -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));