mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
drm: restore crtc origin if mode_set_base fails
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
bec2eac3a4
commit
fbce40641b
@ -822,6 +822,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
|
||||
ret = crtc_funcs->mode_set_base(set->crtc,
|
||||
set->x, set->y, save_set.fb);
|
||||
if (ret != 0) {
|
||||
set->crtc->x = save_set.x;
|
||||
set->crtc->y = save_set.y;
|
||||
set->crtc->fb = save_set.fb;
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user