gpu: ipu-cpmem: set image base address even for incorrect formats
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 6 Feb 2017 11:39:01 +0000 (12:39 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 14:28:26 +0000 (15:28 +0100)
commit5cd4337135f5d79bf655fa421980e467d76ba125
treeaa88edf778126204a27dd3d4174f38ad128422bb
parent2e9a71218ee34ee652f45cd9d7ba713e1b0155e4
gpu: ipu-cpmem: set image base address even for incorrect formats

Otherwise, if the image base address is kept at zero, and if the user
ignores the error return value, the IPU may be configured to write into
the dma-apbh@00110000 region for large frames, which will lock up the
system.

Reported-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-cpmem.c