Merge tag 'hardening-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[platform/kernel/linux-starfive.git] / drivers / gpu / drm / sti / sti_hda.c
index a53b5a1..15097ac 100644 (file)
@@ -524,7 +524,7 @@ static void sti_hda_set_mode(struct drm_bridge *bridge,
 
        DRM_DEBUG_DRIVER("\n");
 
-       memcpy(&hda->mode, mode, sizeof(struct drm_display_mode));
+       drm_mode_copy(&hda->mode, mode);
 
        if (!hda_get_mode_idx(hda->mode, &mode_idx)) {
                DRM_ERROR("Undefined mode\n");