offb: Fix bug in calculating requested vram size
commit69236e6011d14450a3ed033327d1e6e225b35027
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:29:19 +0000 (12 11:29 -0800)
tree5d261341f73b40f3e2d34fa54c125486b7a06a2a
parentdfedad611959d25331b77459bc9a96fb7765127f
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