aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2_htree.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2014-03-06 21:02:16 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2014-03-06 21:02:16 +0000
commit157b40af8ec89c1bf270001e8c8a763a96c44861 (patch)
tree5a0e5bf64a946a309f353fcf17acbba3679c951d /sys/fs/ext2fs/ext2_htree.c
parentb3a67a42427b56ef57b06b6435ee7b6185c0ff72 (diff)
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
Notes
Notes: svn path=/head/; revision=262869
Diffstat (limited to 'sys/fs/ext2fs/ext2_htree.c')
-rw-r--r--sys/fs/ext2fs/ext2_htree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c
index 9c20fff311e2..33e4c0f7d42d 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);
}