From: Maarten Lankhorst Date: Wed, 24 Jun 2015 06:59:25 +0000 (+0200) Subject: drm/atomic: Cleanup on error properly in the atomic ioctl. X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~37^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9f932ed41622d120de52a5b525e4d77b9ef17e;p=pandora-kernel.git 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 [danvet: Add note about the other changes in here. And fix long line while at it.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed