diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-10-29 15:09:43 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 04:27:50 (GMT) |
commit | fbce40641b6d8df6171775986d5aa4cce30b4e28 (patch) | |
tree | 8ea21a006861e0b9e34f60ac2dbb2bb674ae74aa | |
parent | bec2eac3a4f987a1268dd1ec9a864349879082ef (diff) | |
download | linux-fsl-qoriq-fbce40641b6d8df6171775986d5aa4cce30b4e28.tar.xz |
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>
-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 11040a5..acc9c36 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; } |