Index: kern_descrip.c
===================================================================
RCS file: /data/ncvs/src/sys/kern/kern_descrip.c,v
retrieving revision 1.195
diff -u -r1.195 kern_descrip.c
--- kern_descrip.c	30 Apr 2003 12:57:39 -0000	1.195
+++ kern_descrip.c	12 May 2003 17:29:30 -0000
@@ -986,7 +986,9 @@
 	case DTYPE_VNODE:
 		vp = fp->f_data;
 		mtx_lock(&Giant);
+		vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
 		error = VOP_PATHCONF(vp, uap->name, td->td_retval);
+		VOP_UNLOCK(vp, 0, td);
 		mtx_unlock(&Giant);
 		break;
 	default:
