diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2022-10-28 11:52:05 +0200 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2022-10-29 14:41:28 +0200 |
commit | 471bf2406c043491b1a8288e5f04bc278f7d7ca1 (patch) | |
tree | c6876d0472100784eb01c81cc96f134007bd32e3 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 553c5a429aee26c9cfaf37ae158a8915540270fe (diff) |
drm/rockchip: vop2: fix null pointer in plane_atomic_disable
If the vop2_plane_atomic_disable function is called with NULL as a
state, accessing the old_pstate runs into a null pointer exception.
However, the drm_atomic_helper_disable_planes_on_crtc function calls the
atomic_disable callback with state NULL.
Allow to disable a plane without passing a plane state by checking the
old_pstate only if a state is passed.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221028095206.2136601-2-m.tretter@pengutronix.de
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions