svn commit: r262944 - stable/9/sys/fs/ext2fs

Pedro F. Giffuni pfg at FreeBSD.org
Sun Mar 9 04:17:04 UTC 2014


Author: pfg
Date: Sun Mar  9 04:17:04 2014
New Revision: 262944
URL: http://svnweb.freebsd.org/changeset/base/262944

Log:
  MFC	r262869:
  
  ext2fs: Fix a bug when sorting htree entries.
  
  This a typo introduced when bringing the original code from NetBSD.
  
  Reported by:	Mike Ma

Modified:
  stable/9/sys/fs/ext2fs/ext2_htree.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/fs/   (props changed)

Modified: stable/9/sys/fs/ext2fs/ext2_htree.c
==============================================================================
--- stable/9/sys/fs/ext2fs/ext2_htree.c	Sun Mar  9 04:16:00 2014	(r262943)
+++ stable/9/sys/fs/ext2fs/ext2_htree.c	Sun Mar  9 04:17:04 2014	(r262944)
@@ -471,7 +471,7 @@ ext2_htree_cmp_sort_entry(const void *e1
 
 	if (entry1->h_hash < entry2->h_hash)
 		return (-1);
-	if (entry2->h_hash > entry2->h_hash)
+	if (entry1->h_hash > entry2->h_hash)
 		return (1);
 	return (0);
 }


More information about the svn-src-stable-9 mailing list