From 534f96713f3fa68e378566c564d8430d3785ef25 Mon Sep 17 00:00:00 2001 From: Tyson Whitehead Date: Wed, 3 Nov 2010 12:04:22 -0400 Subject: [PATCH] drm/radeon/kms: fix wrong index typo in router object indexing This patch fixes an indexing typo that was resulting in the atom bios router objects not being properly walked. --- drivers/gpu/drm/radeon/radeon_atombios.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 8e43dda..7c56387 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -649,7 +649,7 @@ bool radeon_get_atom_connector_info_from_object_table(struct drm_device *dev) } else if (grph_obj_type == GRAPH_OBJECT_TYPE_ROUTER) { router.valid = false; for (k = 0; k < router_obj->ucNumberOfObjects; k++) { - u16 router_obj_id = le16_to_cpu(router_obj->asObjects[j].usObjectID); + u16 router_obj_id = le16_to_cpu(router_obj->asObjects[k].usObjectID); if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { ATOM_COMMON_RECORD_HEADER *record = (ATOM_COMMON_RECORD_HEADER *) (ctx->bios + data_offset + -- 1.7.3.1