aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-13 15:39:29 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-13 15:39:29 -0700
commitf71c8fb531f6db841248c66f814af859eb48f469 (patch)
tree0e99b38d6c44f124466a550a4b82238b2bc885c5
parent4ade7735e6607f3db51df50d4e79e636ba6a0121 (diff)
downloadsyslinux-f71c8fb531f6db841248c66f814af859eb48f469.tar.gz
syslinux-f71c8fb531f6db841248c66f814af859eb48f469.tar.xz
syslinux-f71c8fb531f6db841248c66f814af859eb48f469.zip
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@linux.intel.com>
-rw-r--r--core/fs/diskio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index d2f1671d..464cca6d 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 {