offb: Fix bug in calculating requested vram size
commit0a3a07f15b5324eaeda9cd95e86e62fd44ad19b0
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:15 +0000 (3 12:09 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:40:01 +0000 (12 11:40 -0800)
tree43eb954f22ff60eaadcf6d92a9a07715ee110911
parentaef3cb6ca5ff47d3f36aa95ca73d370642b099aa
offb: Fix bug in calculating requested vram size

commit c055fe0797b7bd8f6f21a13598a55a16d5c13ae7 upstream.

We used to try to request 8 times more vram than needed, which would
fail if the card has a too small BAR (observed with qemu & kvm).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/offb.c