projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/drivers/gpu/drm/sti/sti_hda.c
b/drivers/gpu/drm/sti/sti_hda.c
index
a53b5a1
..
15097ac
100644
(file)
--- a/
drivers/gpu/drm/sti/sti_hda.c
+++ b/
drivers/gpu/drm/sti/sti_hda.c
@@
-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");