Commit f1fd8a0
drm/amd/display: Fix overlapping copy within dml_core_mode_programming
[WHY]
&mode_lib->mp.Watermark and &locals->Watermark are
the same address. memcpy may lead to unexpected behavior.
[HOW]
memmove should be used.
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 1357b21 commit f1fd8a0
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9460 | 9460 | | |
9461 | 9461 | | |
9462 | 9462 | | |
| 9463 | + | |
| 9464 | + | |
9463 | 9465 | | |
9464 | | - | |
| 9466 | + | |
9465 | 9467 | | |
9466 | 9468 | | |
9467 | 9469 | | |
| |||
0 commit comments