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)
for (i = 0; i < size; i++) {
/* Check if it is memory */
c = i & 0xff;
mem[i] = c;
if (mem[i] != c)
writeb(c, mem + i);
if (readb(mem + i) != c)
break;
c = 255 - c;
mem[i] = c;
if (mem[i] != c)
writeb(c, mem + i);
if (readb(mem + i) != c)
break;
mem[i] = 0; /* zero out memory */
writeb(0, mem + i); /* zero out memory */
/* give the kernel air to breath */
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