Skip to content

Commit

Permalink
drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Jul 1, 2013
1 parent aa71d83 commit 5c7524b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_atombios.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c7524b

Please sign in to comment.