]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12
authorLiu Ying <gnuiyl@gmail.com>
Tue, 18 Oct 2016 08:44:03 +0000 (16:44 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 09:02:12 +0000 (11:02 +0200)
commitd58814229b28a31e1e6a748a1c8365f3d48f3ea4
tree2dcf04fbe2eef1ccfa608ae769fb6c873b242821
parent70f89ab8e62ec091e8167935c2d9f48a2d1c5a12
drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12

Before accessing the u/v offset(aka, u/vbo for IPUv3) of the old plane state's
relevant fb, we should make sure the fb is in YU12 or YV12 pixel format(which
are the two YUV pixel formats we support only), otherwise, we are likely to
trigger BUG_ON() in drm_plane_state_to_u/vbo() since the fb's pixel format is
probably not YU12 or YV12.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=98150
Fixes: 59f13922f233 ("drm/imx: Add active plane reconfiguration support")
Cc: stable@vger.kernel.org # 4.8
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-plane.c