offb: Fix bug in calculating requested vram size
commit68530d7210025a1e395819b774fcffaf943dd8f3
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:35:00 +0000 (12 11:35 -0800)
treec62e164e108dff0c5807228af221b80d63a5a389
parent51a32a1a373e071aec24ffa765d198d591b3d6dd
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