Skip to content
  • Matt Roper's avatar
    kms_atomic: drop unnecessary connector looping from plane_primary test · 34829254
    Matt Roper authored
    
    
    Local variable num_connectors is never initialized before being
    auto-incremented in the loop.  If we wind up with a non-zero garbage
    value, it will lead us to try to write to an out-of-bounds array index.
    We should probably initialize it to zero before use.
    
    However on closer inspection, the plane_primary test doesn't actually
    wind up using the connector list or number of connectors, so just remove
    the whole block of code; it was probably brought in by accident as part
    of a copy-paste operation.
    
    Cc: Daniel Stone <daniels@collabora.com>
    Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
    34829254