Skip to content

Commit b54ce6c

Browse files
Jiawei Gualexdeucher
authored andcommitted
drm/amdgpu: Clear garbage data in err_data before usage
Memory of err_data should be cleaned before usage when there're multiple entry in ras ih. Otherwise garbage data from last loop will be used. Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 19e43f1 commit b54ce6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ static void amdgpu_ras_interrupt_handler(struct ras_manager *obj)
15921592
/* Let IP handle its data, maybe we need get the output
15931593
* from the callback to udpate the error type/count, etc
15941594
*/
1595+
memset(&err_data, 0, sizeof(err_data));
15951596
ret = data->cb(obj->adev, &err_data, &entry);
15961597
/* ue will trigger an interrupt, and in that case
15971598
* we need do a reset to recovery the whole system.

0 commit comments

Comments
 (0)