Re: [PATCH 3/4] drm/rockchip: vop2: Don't crash for invalid duplicate_state

2023-06-21 Thread Sascha Hauer
On Tue, Jun 20, 2023 at 06:47:38AM +, Jonas Karlman wrote: > It's possible for users to try to duplicate the CRTC state even when the > state doesn't exist. drm_atomic_helper_crtc_duplicate_state() (and other > users of __drm_atomic_helper_crtc_duplicate_state()) already guard this > with a WAR

[PATCH 3/4] drm/rockchip: vop2: Don't crash for invalid duplicate_state

2023-06-19 Thread Jonas Karlman
It's possible for users to try to duplicate the CRTC state even when the state doesn't exist. drm_atomic_helper_crtc_duplicate_state() (and other users of __drm_atomic_helper_crtc_duplicate_state()) already guard this with a WARN_ON() instead of crashing, so let's do that here too. Fixes: 604be855