Commit f69ea554 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: 4GB firmware flash fix

From: Anton Blanchard <anton@samba.org>

From: Jake Moilanen

We want to make sure flash list is above 4 gigs, not 4 megs.
parent 804ff506
......@@ -345,7 +345,7 @@ rtas_flash_firmware(void)
rtas_firmware_flash_list.num_blocks = 0;
flist = (struct flash_block_list *)&rtas_firmware_flash_list;
rtas_block_list = virt_to_abs(flist);
if (rtas_block_list >= (4UL << 20)) {
if (rtas_block_list >= 4UL*1024*1024*1024) {
printk(KERN_ALERT "FLASH: kernel bug...flash list header addr above 4GB\n");
return;
}
......
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