projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ade773
)
diskio: compare to the proper pointer
author
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 13 May 2010 22:39:29 +0000
(15:39 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 13 May 2010 22:39:29 +0000
(15:39 -0700)
We need to compare against the advanced pointer, not the original one.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/diskio.c
patch
|
blob
|
history
diff --git
a/core/fs/diskio.c
b/core/fs/diskio.c
index
d2f1671
..
464cca6
100644
(file)
--- 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 {