projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec2eac
)
drm: restore crtc origin if mode_set_base fails
author
Ilija Hadzic
<ihadzic@research.bell-labs.com>
Tue, 29 Oct 2013 15:09:43 +0000
(11:09 -0400)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 6 Nov 2013 04:27:50 +0000
(14:27 +1000)
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_crtc_helper.c
b/drivers/gpu/drm/drm_crtc_helper.c
index 11040a5886d472339cf9be185a43a7c17f0bfdcf..acc9c36614dfecf52ff0ba1e17d47691abc80d63 100644
(file)
--- 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;
}