aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-07-17 10:18:52 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-17 14:52:47 -0400
commit1fa4252af760560f77ca3d5d360fd62df3292c7f (patch)
tree340b767af632b528347e090e8eaa6cf0485fc49f /drivers/gpu
parent1294d4a36d1e0dacfc37c1f269d78ff58f0cd8bc (diff)
drm/radeon: fix an endian bug in atom table parsing
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-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 fbdaff55556b..0c3455a73992 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -3638,7 +3638,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev,
3638 p += le16_to_cpu(vram_module->usModuleSize); 3638 p += le16_to_cpu(vram_module->usModuleSize);
3639 } 3639 }
3640 mclk_range_table->num_entries = (u8) 3640 mclk_range_table->num_entries = (u8)
3641 ((vram_module->usModuleSize - offsetof(ATOM_VRAM_MODULE_V4, asMemTiming)) / 3641 ((le16_to_cpu(vram_module->usModuleSize) - offsetof(ATOM_VRAM_MODULE_V4, asMemTiming)) /
3642 mem_timing_size); 3642 mem_timing_size);
3643 p = (u8 *)vram_module->asMemTiming; 3643 p = (u8 *)vram_module->asMemTiming;
3644 for (i = 0; i < mclk_range_table->num_entries; i++) { 3644 for (i = 0; i < mclk_range_table->num_entries; i++) {