]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Feb 2012 14:38:18 +0000 (15:38 +0100)
commitffee6c2e0c3447fee202bb28d78f9c1dae289926
tree27d67439e53b0251b5fce4a3f95860db252efaa0
parentc377a00dfca53f9a01c450829863535618e592bf
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/video/offb.c