diff options
author | 2017-08-10 15:17:56 +0800 | |
---|---|---|
committer | 2017-08-15 14:46:20 -0400 | |
commit | e68760bfba2d1f0678f6e84511836b2b556fa52c (patch) | |
tree | 735ec29e166b0554e18bbd3c993378c593379fcf /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
parent | drm/amdgpu: ignore digest_size when loading sdma fw for raven (diff) | |
download | linux-e68760bfba2d1f0678f6e84511836b2b556fa52c.tar.gz linux-e68760bfba2d1f0678f6e84511836b2b556fa52c.tar.bz2 linux-e68760bfba2d1f0678f6e84511836b2b556fa52c.zip |
drm/amdgpu: fix missing endian-safe guard
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index 8c462b091aff..fd435a96481c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c @@ -659,7 +659,7 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, info->version = (uint16_t)le32_to_cpu(header->header.ucode_version); if (CGS_UCODE_ID_CP_MEC == type) - info->image_size = (header->jt_offset) << 2; + info->image_size = le32_to_cpu(header->jt_offset) << 2; info->fw_version = amdgpu_get_firmware_version(cgs_device, type); info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version); |