Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2014 21:02:16 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262869 - head/sys/fs/ext2fs
Message-ID:  <201403062102.s26L2G0H002333@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu Mar  6 21:02:16 2014
New Revision: 262869
URL: http://svnweb.freebsd.org/changeset/base/262869

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

Modified:
  head/sys/fs/ext2fs/ext2_htree.c

Modified: head/sys/fs/ext2fs/ext2_htree.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_htree.c	Thu Mar  6 20:39:56 2014	(r262868)
+++ head/sys/fs/ext2fs/ext2_htree.c	Thu Mar  6 21:02:16 2014	(r262869)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403062102.s26L2G0H002333>