offb: Fix bug in calculating requested vram size
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:15 +0000 (12:09 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:15 +0000 (12:09 +1100)
commitc055fe0797b7bd8f6f21a13598a55a16d5c13ae7
tree8fbf4ad76badf0458c6fe012efd98513fbbb8c5e
parenteba3d97db876fe6f8bad64ecd9dc20133e7708ed
offb: Fix bug in calculating requested vram size

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>
CC: stable@kernel.org
drivers/video/offb.c