mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 08:16:12 +07:00
drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
aa71d830c4
commit
5c7524bf06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user