svn commit: r263355 - stable/9/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Mar 19 12:57:13 UTC 2014
Author: kib
Date: Wed Mar 19 12:57:13 2014
New Revision: 263355
URL: http://svnweb.freebsd.org/changeset/base/263355
Log:
MFC r263079:
The auio structure is only initialized when the vnode is symlink,
avoid reading from it otherwise.
Modified:
stable/9/sys/kern/vfs_syscalls.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/vfs_syscalls.c
==============================================================================
--- stable/9/sys/kern/vfs_syscalls.c Wed Mar 19 12:55:57 2014 (r263354)
+++ stable/9/sys/kern/vfs_syscalls.c Wed Mar 19 12:57:13 2014 (r263355)
@@ -2719,10 +2719,10 @@ kern_readlinkat(struct thread *td, int f
auio.uio_td = td;
auio.uio_resid = count;
error = VOP_READLINK(vp, &auio, td->td_ucred);
+ td->td_retval[0] = count - auio.uio_resid;
}
vput(vp);
VFS_UNLOCK_GIANT(vfslocked);
- td->td_retval[0] = count - auio.uio_resid;
return (error);
}
More information about the svn-src-stable-9
mailing list