PERFORCE change 110132 for review
Todd Miller
millert at FreeBSD.org
Thu Nov 16 21:34:42 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=110132
Change 110132 by millert at millert_macbook on 2006/11/16 21:34:17
For F_SETSIZE set vp before we drop the proc lock like the
other parts of fcntl().
Affected files ...
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_descrip.c#9 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_descrip.c#9 (text+ko) ====
@@ -671,13 +671,13 @@
error = EBADF;
goto out;
}
+ vp = (struct vnode *)fp->f_data;
proc_fdunlock(p);
error = copyin(argp, (caddr_t)&offset, sizeof (off_t));
if (error)
goto outdrop;
- vp = (struct vnode *)fp->f_data;
error = vnode_getwithref(vp);
if (error)
goto outdrop;
More information about the trustedbsd-cvs
mailing list