From owner-p4-projects@FreeBSD.ORG Thu Nov 16 21:34:37 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3CF1F16A56F; Thu, 16 Nov 2006 21:34:37 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD0A616A47B for ; Thu, 16 Nov 2006 21:34:36 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98BE643D45 for ; Thu, 16 Nov 2006 21:34:36 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAGLYaau004893 for ; Thu, 16 Nov 2006 21:34:36 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAGLYaVg004890 for perforce@freebsd.org; Thu, 16 Nov 2006 21:34:36 GMT (envelope-from millert@freebsd.org) Date: Thu, 16 Nov 2006 21:34:36 GMT Message-Id: <200611162134.kAGLYaVg004890@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 110132 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 21:34:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=110132 Change 110132 by millert@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;