Author: kib
Date: Sun Feb 28 17:11:31 2010
New Revision: 204469
URL: http://svn.freebsd.org/changeset/base/204469

Log:
  In msdosfs deget(), properly handle the case when the vnode is found in hash.
  
  Tested by:    pho
  MFC after:    3 weeks

Modified:
  head/sys/fs/msdosfs/msdosfs_denode.c

Modified: head/sys/fs/msdosfs/msdosfs_denode.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_denode.c        Sun Feb 28 17:10:41 2010        
(r204468)
+++ head/sys/fs/msdosfs/msdosfs_denode.c        Sun Feb 28 17:11:31 2010        
(r204469)
@@ -182,9 +182,8 @@ deget(pmp, dirclust, diroffset, depp)
                return (error);
        }
        if (xvp != NULL) {
-               /* XXX: Not sure this is right */
-               nvp = xvp;
-               ldep->de_vnode = nvp;
+               *depp = xvp->v_data;
+               return (0);
        }
 
        ldep->de_pmp = pmp;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to