Use -zfs_readlink() error
The zfs_readlink() function returns a Solaris positive error value and that needs to be converted to a Linux negative error value. While in this case nothing would actually go wrong, it's still incorrect and should be fixed if for no other reason than clarity.
This commit is contained in:
parent
f03e41e8da
commit
5095000169
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user