]> git.baikalelectronics.ru Git - kernel.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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:15 +0000 (12:09 +1100)
commit269db71774093736bf53c9306109396cd75665d0
tree8fbf4ad76badf0458c6fe012efd98513fbbb8c5e
parent8ab79d62a8ee4b091262cd3b6aa782879bfec46d
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