diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-10-29 11:09:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-05 23:27:50 -0500 |
commit | fbce40641b6d8df6171775986d5aa4cce30b4e28 (patch) | |
tree | 8ea21a006861e0b9e34f60ac2dbb2bb674ae74aa /drivers/gpu/drm/drm_crtc_helper.c | |
parent | bec2eac3a4f987a1268dd1ec9a864349879082ef (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 11040a5886d4..acc9c36614df 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -822,6 +822,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) | |||
822 | ret = crtc_funcs->mode_set_base(set->crtc, | 822 | ret = crtc_funcs->mode_set_base(set->crtc, |
823 | set->x, set->y, save_set.fb); | 823 | set->x, set->y, save_set.fb); |
824 | if (ret != 0) { | 824 | if (ret != 0) { |
825 | set->crtc->x = save_set.x; | ||
826 | set->crtc->y = save_set.y; | ||
825 | set->crtc->fb = save_set.fb; | 827 | set->crtc->fb = save_set.fb; |
826 | goto fail; | 828 | goto fail; |
827 | } | 829 | } |