svn commit: r204469 - head/sys/fs/msdosfs

Konstantin Belousov kib at FreeBSD.org
Sun Feb 28 17:11:32 UTC 2010


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;


More information about the svn-src-all mailing list