Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/atomic-helper: fix parameter order in drm_format_conv_state_copy() call

Old and new state parameters are swapped, so the old state was cleared
instead of the new duplicated state.

Fixes: 903674588a48 ("drm/atomic-helper: Add format-conversion state to shadow-plane state")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: <stable@vger.kernel.org> # v6.8+
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404081756.2714424-1-l.stach@pengutronix.de

authored by

Lucas Stach and committed by
Thomas Zimmermann
a386c304 6aff4c26

+2 -2
+2 -2
drivers/gpu/drm/drm_gem_atomic_helper.c
··· 224 224 225 225 __drm_atomic_helper_plane_duplicate_state(plane, &new_shadow_plane_state->base); 226 226 227 - drm_format_conv_state_copy(&shadow_plane_state->fmtcnv_state, 228 - &new_shadow_plane_state->fmtcnv_state); 227 + drm_format_conv_state_copy(&new_shadow_plane_state->fmtcnv_state, 228 + &shadow_plane_state->fmtcnv_state); 229 229 } 230 230 EXPORT_SYMBOL(__drm_gem_duplicate_shadow_plane_state); 231 231