From: Ander Conselvan de Oliveira Date: Mon, 30 Mar 2015 07:41:19 +0000 (+0300) Subject: drm/atomic: Clear crtcs, connectors and planes when clearing state X-Git-Tag: omap-for-v4.2/o2_dc~72^2~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5c0bde54ca0354ae8b7e9d37d17bc514aa6c42;p=pandora-kernel.git drm/atomic: Clear crtcs, connectors and planes when clearing state Users of the atomic state assume that if the pointer to a crtc, plane or connector is not NULL in the respective object vector, than the state for that object in *_states vector also won't be NULL. That assumption was broken by drm_atomic_state_clear(), which would clear the state pointer but leave the pointer to the object still set. This fixes a NULL pointer dereference in i915 caused by the use of drm_atomic_state_clear(). Cc: dri-devel@lists.freedesktop.org Signed-off-by: Ander Conselvan de Oliveira Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed