Commit 86ce20ca authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Linus Torvalds

[PATCH] radeonfb: If no video memory, exit with error

Nothing good will happen if we try to ioremap and use a zero-sized frame
buffer.  I observed this problem on an ia64 sx1000 box, where the BIOS
doesn't run the option ROM.  If we try to continue, radeonfb just gets
hopelessly confused because the card isn't initialized correctly.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent aeda3320
......@@ -2186,7 +2186,9 @@ static int radeonfb_pci_register (struct pci_dev *pdev,
rinfo->video_ram = 8192 * 1024;
break;
default:
break;
printk (KERN_ERR "radeonfb: no video RAM reported\n");
ret = -ENXIO;
goto err_unmap_rom;
}
}
......
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