]> asedeno.scripts.mit.edu Git - linux.git/commit
gpu: ipu-v3: image-convert: bail on invalid tile sizes
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 13 Aug 2019 12:39:50 +0000 (14:39 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Aug 2019 14:25:30 +0000 (16:25 +0200)
commit5fb8b650cc1170f5e7a0f1a4ab3bb2042c007102
treeabba89342e8ef511b763724afbe33d1c0a420a18
parentde2564c70fcc1dfee89fff92eccba5a711a921cc
gpu: ipu-v3: image-convert: bail on invalid tile sizes

If we managed to create tiles sized 0x0 because of a bug in the seam
calculation, return with an error message instead of letting the driver
run into a division by zero later. Also check for tile sizes that are
larger than supported by the hardware.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-image-convert.c