Commit da3ba0f0 authored by Stephen Lord's avatar Stephen Lord

[XFS] initialize the iovec length in symlink cases

SGI Modid: 2.5.x-xfs:slinx:134770a
parent 874f2e47
......@@ -348,6 +348,7 @@ linvfs_readlink(
uio.uio_offset = 0;
uio.uio_segflg = UIO_USERSPACE;
uio.uio_resid = size;
uio.uio_iovcnt = 1;
VOP_READLINK(vp, &uio, NULL, error);
if (error)
......@@ -395,6 +396,7 @@ linvfs_follow_link(
uio->uio_segflg = UIO_SYSSPACE;
uio->uio_resid = MAXNAMELEN;
uio->uio_fmode = 0;
uio->uio_iovcnt = 1;
VOP_READLINK(vp, uio, NULL, error);
if (error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment