]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: fix scaling limits for WB
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 Dec 2015 21:45:20 +0000 (15:45 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commit339bade297e5a17e0bbb6f47cfbf11c46c35724e
tree3e9654f7e10df7ae6d661a83b82a34b218f5bbf5
parent6d17584e053e83ef94336df40c478e14b83b7e96
drm/omap: fix scaling limits for WB

WB has additional scaling limits when the output color format is one of
the YUV formats. These limits are not handled at the moment, causing
bad scaling and/or NULL dereference crash.

This patchs adds the check so that dispc returns an error for bad
scaling request.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dispc.c