Commit 8faa191c authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] zoran fix

direct dereferencing of ioremapped memory.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5cdcb6b7
...@@ -285,14 +285,14 @@ get_high_mem (unsigned long size) ...@@ -285,14 +285,14 @@ get_high_mem (unsigned long size)
for (i = 0; i < size; i++) { for (i = 0; i < size; i++) {
/* Check if it is memory */ /* Check if it is memory */
c = i & 0xff; c = i & 0xff;
mem[i] = c; writeb(c, mem + i);
if (mem[i] != c) if (readb(mem + i) != c)
break; break;
c = 255 - c; c = 255 - c;
mem[i] = c; writeb(c, mem + i);
if (mem[i] != c) if (readb(mem + i) != c)
break; break;
mem[i] = 0; /* zero out memory */ writeb(0, mem + i); /* zero out memory */
/* give the kernel air to breath */ /* give the kernel air to breath */
if ((i & 0x3ffff) == 0x3ffff) if ((i & 0x3ffff) == 0x3ffff)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment