Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232807
b: refs/heads/master
c: 021a845
h: refs/heads/master
i:
  232805: c3a0169
  232803: f175b80
  232799: 0364d83
v: v3
  • Loading branch information
Chris Wilson committed Jan 31, 2011
1 parent 96444ba commit 84fcc02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ede3ff5204b0117d00609f4980df3b864cefe96f
refs/heads/master: 021a8455bedb01750fa8047c8576e19d5af9a99f
8 changes: 3 additions & 5 deletions trunk/drivers/gpu/drm/drm_crtc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,12 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
struct drm_encoder *encoder;
bool ret = true;

adjusted_mode = drm_mode_duplicate(dev, mode);

crtc->enabled = drm_helper_crtc_in_use(crtc);

if (!crtc->enabled)
return true;

adjusted_mode = drm_mode_duplicate(dev, mode);

saved_hwmode = crtc->hwmode;
saved_mode = crtc->mode;
saved_x = crtc->x;
Expand Down Expand Up @@ -437,10 +436,9 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
*/
drm_calc_timestamping_constants(crtc);

/* XXX free adjustedmode */
drm_mode_destroy(dev, adjusted_mode);
/* FIXME: add subpixel order */
done:
drm_mode_destroy(dev, adjusted_mode);
if (!ret) {
crtc->hwmode = saved_hwmode;
crtc->mode = saved_mode;
Expand Down

0 comments on commit 84fcc02

Please sign in to comment.