From: Daniel Vetter Date: Wed, 19 Nov 2014 17:38:07 +0000 (+0100) Subject: drm/atomic: Only destroy connector states with connection mutex held X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f75cea66c8dd043ced282016b21a639af176642;p=pandora-kernel.git drm/atomic: Only destroy connector states with connection mutex held Otherwise the connector might have been unplugged and destroyed while we didn't look. Yet another fallout from DP MST hotplugging that I didn't consider. To make sure we get this right add an appropriate WARN_ON to drm_atomic_state_clear (obviously only when we actually have a state to clear up). And reorder all the state_clear and backoff calls to make it work out properly. Signed-off-by: Daniel Vetter Reviewed-by: Rob Clark Signed-off-by: Dave Airlie --- Reading git-diff-tree failed