diff options
author | pfg <pfg@FreeBSD.org> | 2014-03-09 04:16:00 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-03-09 04:16:00 +0000 |
commit | d439a6998f1d72885e53e10c6a151e95fb821478 (patch) | |
tree | ba87c149d37e1da6d7c8fcbe59637977ebc1e5f7 /sys/fs/ext2fs | |
parent | b3a8c13b8345cc49ab30c2562f746cec4bb77514 (diff) | |
download | FreeBSD-src-d439a6998f1d72885e53e10c6a151e95fb821478.zip FreeBSD-src-d439a6998f1d72885e53e10c6a151e95fb821478.tar.gz |
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
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_htree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c index 9c20fff..33e4c0f 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); } |