mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/amdgpu: init locals in umc_v12_0_convert_error_address
row, col, col_lower, row_lower, row_high and bank could be read on code paths that never assign them. Initialize them to 0. Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ef7dc711a6
commit
a71db9b8f7
|
|
@ -285,7 +285,8 @@ static int umc_v12_0_convert_error_address(struct amdgpu_device *adev,
|
|||
struct ta_ras_query_address_output *addr_out,
|
||||
bool dump_addr)
|
||||
{
|
||||
uint32_t col, col_lower, row, row_lower, row_high, bank;
|
||||
uint32_t row = 0, row_lower = 0, row_high = 0;
|
||||
uint32_t col = 0, col_lower = 0, bank = 0;
|
||||
uint32_t channel_index = 0, umc_inst = 0;
|
||||
uint32_t i, bit_num, retire_unit, *flip_bits;
|
||||
uint64_t soc_pa, column, err_addr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user