diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-22 21:47:55 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-23 11:42:31 -0300 |
commit | ece14eb746d5439a91d10bfd803c3db412686cc4 (patch) | |
tree | 2f104df7f810dac378fb14ec2c7f5018ced29bb9 | |
parent | 4ae18523c2e1b462be15c620f49298777c8cf387 (diff) | |
download | syslinux-ece14eb746d5439a91d10bfd803c3db412686cc4.tar.gz syslinux-ece14eb746d5439a91d10bfd803c3db412686cc4.tar.xz syslinux-ece14eb746d5439a91d10bfd803c3db412686cc4.zip |
xfs: Fix binary search in xfs_dir2_leaf_find_entry() function
The "high" variable wasn't being updated correctly, so the "high" and
"low" variables were containing the same value in the search.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | core/fs/xfs/xfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index 75e628e8..a8179c56 100644 --- a/core/fs/xfs/xfs.c +++ b/core/fs/xfs/xfs.c @@ -683,7 +683,7 @@ static struct inode *xfs_dir2_leaf_find_entry(const char *dname, if (hash < hashwant) low = mid + 1; else - high = mid + 1; + high = mid - 1; } if (hash != hashwant) |