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-06 14:27:50 +1000 |
commit | fbce40641b6d8df6171775986d5aa4cce30b4e28 (patch) | |
tree | 8ea21a006861e0b9e34f60ac2dbb2bb674ae74aa /drivers/gpu/drm/drm_crtc_helper.c | |
parent | bec2eac3a4f987a1268dd1ec9a864349879082ef (diff) | |
download | linux-fbce40641b6d8df6171775986d5aa4cce30b4e28.tar.bz2 |
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) 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; } |