]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Cleanup on error properly in the atomic ioctl.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Jun 2015 06:59:25 +0000 (08:59 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 7 Jul 2015 06:58:19 +0000 (08:58 +0200)
commit5ff18c8ff0fafcfb9beeba1b1c11308b846fc838
tree9fb31bee516c49e25327444afa0d64dc2824d68f
parentf53592e5b6b5f0659bfb2671ffcb476f89a8fa1b
drm/atomic: Cleanup on error properly in the atomic ioctl.

It's probably allowed to leave old_fb set to garbage when unlocking,
but to prevent undefined behavior unset it just in case.

Also crtc_state->event could be NULL on memory allocation failure,
in which case event_space is increased for no reason.

Note: Contains some general simplification of the cleanup code too.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[danvet: Add note about the other changes in here. And fix long line
while at it.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c