[PATCH 3/6] drm/atomic: Don't overrun the connector array when hotplugging

2014-11-20 Thread Thierry Reding
On Wed, Nov 19, 2014 at 06:38:08PM +0100, Daniel Vetter wrote: [...] > diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c [...] > @@ -304,6 +306,21 @@ drm_atomic_get_connector_state(struct drm_atomic_state > *state, > > index = drm_connector_index(connector); > > +

[PATCH 3/6] drm/atomic: Don't overrun the connector array when hotplugging

2014-11-19 Thread Daniel Vetter
Yet another fallout from not considering DP MST hotplug. With the previous patches we have stable indices, but it might still happen that a connector gets added between when we allocate the array and when we actually add a connector. Especially when we back off due to ww mutex contention or similar

[Intel-gfx] [PATCH 3/6] drm/atomic: Don't overrun the connector array when hotplugging

2014-11-19 Thread Rob Clark
On Wed, Nov 19, 2014 at 12:38 PM, Daniel Vetter wrote: > Yet another fallout from not considering DP MST hotplug. With the > previous patches we have stable indices, but it might still happen > that a connector gets added between when we allocate the array and > when we actually add a connector.