]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mxsfb: Fix NULL pointer dereference
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Wed, 2 Feb 2022 08:17:55 +0000 (09:17 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 3 Feb 2022 08:31:16 +0000 (09:31 +0100)
commite1cd263b86e5fc91106fe68de66016e6f4f69d0a
treeed249fb464b88f5130609e81333580cc0d9f62c7
parentcf2d0bac98a0e78571d1f967517c95ff79da4e5c
drm: mxsfb: Fix NULL pointer dereference

mxsfb should not ever dereference the NULL pointer which
drm_atomic_get_new_bridge_state is allowed to return.
Assume a fixed format instead.

Fixes: 4efcb98c1353 ("drm: mxsfb: Use bus_format from the nearest bridge if present")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220202081755.145716-3-alexander.stein@ew.tq-group.com
drivers/gpu/drm/mxsfb/mxsfb_kms.c