提交 5c7524bf 编写于 作者: A Alex Deucher

drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()

Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 aa71d830
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册