Ticket #17525: check_connector_index.diff

File check_connector_index.diff, 726 bytes (added by madmax, 3 years ago)
  • src/add-ons/accelerants/radeon_hd/connector.cpp

    diff --git a/src/add-ons/accelerants/radeon_hd/connector.cpp b/src/add-ons/accelerants/radeon_hd/connector.cpp
    index bd5de57841..20be1d249d 100644
    a b connector_probe()  
    747747            radeon_shared_info &info = *gInfo->shared_info;
    748748
    749749            uint16 igpLaneInfo;
    750             if ((info.chipsetFlags & CHIP_IGP) != 0) {
     750            if (connectorObjectID >= B_COUNT_OF(kConnectorConvert)) {
     751                igpLaneInfo = 0;
     752                connectorType = VIDEO_CONNECTOR_UNKNOWN;
     753            } else if ((info.chipsetFlags & CHIP_IGP) != 0) {
    751754                ERROR("%s: TODO: IGP chip connector detection\n", __func__);
    752755                // try non-IGP method for now
    753756                igpLaneInfo = 0;