commit | 4d6a10da79fddcf7460299ab390da74ef2b592f6 | [log] [tgz] |
---|---|---|
author | Imre Deak <imre.deak@intel.com> | Fri Jan 29 14:44:29 2016 +0200 |
committer | Dave Airlie <airlied@redhat.com> | Fri Feb 05 15:23:48 2016 +1000 |
tree | 1a09af919fb8ab10db0d84a0b1440883ee89f913 | |
parent | 441388a8a73f905359e60518cfc18eca6aed2b6a [diff] |
drm/mst: Add range check for max_payloads during init 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 <imre.deak@intel.com> Reviewed-by: David Weinehall <david.weinehall@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>