summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2022-06-18 03:26:52 +0300
committerHeiko Stuebner <heiko@sntech.de>2022-07-02 13:50:01 +0300
commit1449110b0dade8b638d2c17ab7c5b0ff696bfccb (patch)
tree21fc2e5fa50a61c78626e065706b24d8a29aafbd /drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
parent5cd561688b3e8a248fdbb37a1b10801b06736865 (diff)
downloadlinux-1449110b0dade8b638d2c17ab7c5b0ff696bfccb.tar.xz
drm/rockchip: vop: Don't crash for invalid duplicate_state()
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: 4e257d9eee23 ("drm/rockchip: get rid of rockchip_drm_crtc_mode_config") Signed-off-by: Brian Norris <briannorris@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20220617172623.1.I62db228170b1559ada60b8d3e1637e1688424926@changeid
Diffstat (limited to 'drivers/gpu/drm/rockchip/analogix_dp-rockchip.c')
0 files changed, 0 insertions, 0 deletions