forked from Minki/linux
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>
This commit is contained in:
parent
19e43f1276
commit
b54ce6c92c
@ -1592,6 +1592,7 @@ static void amdgpu_ras_interrupt_handler(struct ras_manager *obj)
|
||||
/* Let IP handle its data, maybe we need get the output
|
||||
* from the callback to udpate the error type/count, etc
|
||||
*/
|
||||
memset(&err_data, 0, sizeof(err_data));
|
||||
ret = data->cb(obj->adev, &err_data, &entry);
|
||||
/* ue will trigger an interrupt, and in that case
|
||||
* we need do a reset to recovery the whole system.
|
||||
|
Loading…
Reference in New Issue
Block a user