aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/zpl_inode.c
diff options
context:
space:
mode:
authorChunwei Chen <tuxoko@gmail.com>2015-07-30 14:24:36 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2015-08-24 17:17:06 +0000
commit5475aada9474464f973788c1b2fc6216486fb303 (patch)
treef4b02aff6e841b47cad4894b40c7a1092ad0be3b /module/zfs/zpl_inode.c
parent17888ae30d6111f1fe25087a256724ee9b1a0a84 (diff)
downloadsrc-5475aada9474464f973788c1b2fc6216486fb303.tar.gz
src-5475aada9474464f973788c1b2fc6216486fb303.zip
Diffstat (limited to 'module/zfs/zpl_inode.c')
-rw-r--r--module/zfs/zpl_inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c
index 70b5e12399e1..e81a3cd047b4 100644
--- a/module/zfs/zpl_inode.c
+++ b/module/zfs/zpl_inode.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2011, Lawrence Livermore National Security, LLC.
+ * Copyright (c) 2015 by Chunwei Chen. All rights reserved.
*/
@@ -371,6 +372,7 @@ zpl_follow_link(struct dentry *dentry, void **symlink_cookie)
uio.uio_iov = &iov;
uio.uio_iovcnt = 1;
+ uio.uio_skip = 0;
uio.uio_resid = (MAXPATHLEN - 1);
uio.uio_segflg = UIO_SYSSPACE;