Author: kib Date: Wed Mar 12 10:23:51 2014 New Revision: 263079 URL: http://svnweb.freebsd.org/changeset/base/263079
Log: The auio structure is only initialized when the vnode is symlink, avoid reading from it otherwise. Submitted by: Conrad Meyer <[email protected]> MFC after: 1 week Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c ============================================================================== --- head/sys/kern/vfs_syscalls.c Wed Mar 12 09:08:51 2014 (r263078) +++ head/sys/kern/vfs_syscalls.c Wed Mar 12 10:23:51 2014 (r263079) @@ -2553,9 +2553,9 @@ 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); - td->td_retval[0] = count - auio.uio_resid; return (error); } _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
