Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2014 04:16:00 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262943 - stable/10/sys/fs/ext2fs
Message-ID:  <201403090416.s294G0fg038505@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Sun Mar  9 04:16:00 2014
New Revision: 262943
URL: http://svnweb.freebsd.org/changeset/base/262943

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/10/sys/fs/ext2fs/ext2_htree.c

Modified: stable/10/sys/fs/ext2fs/ext2_htree.c
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_htree.c	Sun Mar  9 03:49:06 2014	(r262942)
+++ stable/10/sys/fs/ext2fs/ext2_htree.c	Sun Mar  9 04:16:00 2014	(r262943)
@@ -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?201403090416.s294G0fg038505>