diff options
Diffstat (limited to 'module/zfs/zpl_inode.c')
-rw-r--r-- | module/zfs/zpl_inode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c index 720330a8b..3f3b2e2dc 100644 --- a/module/zfs/zpl_inode.c +++ b/module/zfs/zpl_inode.c @@ -493,7 +493,7 @@ zpl_get_link_common(struct dentry *dentry, struct inode *ip, char **link) fstrans_cookie_t cookie; cred_t *cr = CRED(); struct iovec iov; - uio_t uio; + uio_t uio = { { 0 }, 0 }; int error; crhold(cr); @@ -503,9 +503,8 @@ zpl_get_link_common(struct dentry *dentry, struct inode *ip, char **link) uio.uio_iov = &iov; uio.uio_iovcnt = 1; - uio.uio_skip = 0; - uio.uio_resid = (MAXPATHLEN - 1); uio.uio_segflg = UIO_SYSSPACE; + uio.uio_resid = (MAXPATHLEN - 1); cookie = spl_fstrans_mark(); error = -zfs_readlink(ip, &uio, cr); |