From fd7d4edb5e5b4ae39b2f14cd2a3e8286e3a76ea8 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 9 Mar 2014 04:17:04 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/9@262944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/fs/ext2fs/ext2_htree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c index 9c20fff31..33e4c0f7d 100644 --- a/sys/fs/ext2fs/ext2_htree.c +++ b/sys/fs/ext2fs/ext2_htree.c @@ -471,7 +471,7 @@ ext2_htree_cmp_sort_entry(const void *e1, const void *e2) 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); } -- 2.45.0