Skip to content

Commit

Permalink
Merge tag 'drm-misc-fixes-2017-01-04' of git://anongit.freedesktop.or…
Browse files Browse the repository at this point in the history
…g/git/drm-misc into drm-fixes

single drm fix.

* tag 'drm-misc-fixes-2017-01-04' of git://anongit.freedesktop.org/git/drm-misc:
  drm: Clean up planes in atomic commit helper failure path
  • Loading branch information
airlied committed Jan 8, 2017
2 parents a121103 + aebe55c commit e1ef6f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/drm_atomic_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,10 @@ int drm_atomic_helper_commit(struct drm_device *dev,

if (!nonblock) {
ret = drm_atomic_helper_wait_for_fences(dev, state, true);
if (ret)
if (ret) {
drm_atomic_helper_cleanup_planes(dev, state);
return ret;
}
}

/*
Expand Down

0 comments on commit e1ef6f7

Please sign in to comment.