Print this page

        

@@ -345,15 +345,17 @@
         if (error)
                 goto done;
 
 
         /* open file table */
+        mutex_enter(&p->p_lock);
         vroot = PTOU(p)->u_rdir;
         if (vroot == NULL)
                 vroot = rootdir;
 
         VN_HOLD(vroot);
+        mutex_exit(&p->p_lock);
 
         fip = P_FINFO(p);
 
         for (fd = 0; fd < fip->fi_nfiles; fd++) {
                 uf_entry_t *ufp;