summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-07-01 13:32:49 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-01 15:46:40 -0400
commit5c7524bf068ebe077254a6c37fcfa27e6cb6a1f3 (patch)
tree3cff89bb84e5df1ecd9f24e2257c682cfd465ae5 /drivers/gpu/drm/radeon/radeon_atombios.c
parentaa71d830c4467801105c2d60c7b8676dee92fa40 (diff)
drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c2
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 a8296e0f8543..dfcf74a89014 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -3732,7 +3732,7 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev,
}
num_ranges++;
}
- reg_data += reg_block->usRegDataBlkSize;
+ reg_data += le16_to_cpu(reg_block->usRegDataBlkSize);
}
if (*(u32 *)reg_data != END_OF_REG_DATA_BLOCK)
return -EINVAL;