[PATCH 2/2] drm/mst: Add range check for max_payloads during init

2016-01-29 Thread David Weinehall
On Fri, Jan 29, 2016 at 02:44:29PM +0200, Imre Deak wrote: > max_payload is limited by the space we have in > drm_dp_mst_topology_mgr::vcpi_mask,payload_mask. We need to track > max_payloads+1 IDs in these masks, see drm_dp_mst_assign_payload_id(). > Add a sanity check for this. > > Caught by cove

[PATCH 2/2] drm/mst: Add range check for max_payloads during init

2016-01-29 Thread Imre Deak
max_payload is limited by the space we have in drm_dp_mst_topology_mgr::vcpi_mask,payload_mask. We need to track max_payloads+1 IDs in these masks, see drm_dp_mst_assign_payload_id(). Add a sanity check for this. Caught by coverity. Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_dp_mst_topolo