Files
linux/include/drm
Daniel Vetter f52b69f1ec drm/atomic: Don't overrun the connector array when hotplugging
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 issues.

So store the sizes of the arrays in struct drm_atomic_state and double
check them. We don't really care about races except that we want to
use a consistent value, so ACCESS_ONCE is all we need. And if we
indeed notice that we'd overrun the array then just give up and
restart the entire ioctl.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-11-20 11:35:20 +10:00
..
2010-08-10 08:20:20 +10:00
2014-09-24 11:43:41 +10:00
2012-11-28 18:36:05 +10:00
2012-05-31 17:49:26 -07:00
2014-11-12 17:56:12 +10:00
2013-12-18 11:35:45 +10:00
2014-10-28 10:44:36 -04:00
2014-03-17 20:11:57 +01:00