[PATCH] drm/atomic: Fix potential use of state after free

2015-01-23 Thread Ander Conselvan de Oliveira
The atomic helpers rely on drm_atomic_state_clear() to reset an atomic state if a retry is needed due to the w/w mutexes. The subsequent calls to drm_atomic_get_{crtc,plane,...}_state() would then return the stale pointers in state->{crtc,plane,...}_states. Signed-off-by: Ander Conselvan de Olivei

[PATCH] drm/atomic: Fix potential use of state after free

2015-01-23 Thread Daniel Vetter
On Fri, Jan 23, 2015 at 09:27:59AM +0200, Ander Conselvan de Oliveira wrote: > The atomic helpers rely on drm_atomic_state_clear() to reset an atomic > state if a retry is needed due to the w/w mutexes. The subsequent calls > to drm_atomic_get_{crtc,plane,...}_state() would then return the stale >