Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbce4064 authored by Ilija Hadzic's avatar Ilija Hadzic Committed by Dave Airlie
Browse files

drm: restore crtc origin if mode_set_base fails

parent bec2eac3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
		}