[syslinux:pathbased] diskio: compare to the proper pointer
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Thu May 13 15:45:22 PDT 2010
Commit-ID: f71c8fb531f6db841248c66f814af859eb48f469
Gitweb: http://syslinux.zytor.com/commit/f71c8fb531f6db841248c66f814af859eb48f469
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Thu, 13 May 2010 15:39:29 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Thu, 13 May 2010 15:39:29 -0700
diskio: compare to the proper pointer
We need to compare against the advanced pointer, not the original one.
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
core/fs/diskio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index d2f1671..464cca6 100644
--- a/core/fs/diskio.c
+++ b/core/fs/diskio.c
@@ -133,7 +133,7 @@ static int edd_rdwr_sectors(struct disk *disk, void *buf,
freeseg = (0x10000 - ((size_t)ptr & 0xffff)) >> sector_shift;
- if ((size_t)buf <= 0xf0000 && freeseg) {
+ if ((size_t)ptr <= 0xf0000 && freeseg) {
/* Can do a direct load */
tptr = ptr;
} else {
More information about the Syslinux-commits
mailing list