diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2020-03-10 08:40:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-03-13 11:52:34 -0400 |
commit | 6397ec580d6e01c5b7db5fe6e483cc89fd87f09c (patch) | |
tree | 47d97ab980cdf10ff1a2d04bd5c834e31bc99694 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | c8d6396b00d4cd19877498519d836222849968f4 (diff) | |
download | lwn-6397ec580d6e01c5b7db5fe6e483cc89fd87f09c.tar.gz lwn-6397ec580d6e01c5b7db5fe6e483cc89fd87f09c.zip |
drm/amd/amdgpu: Fix GPR read from debugfs (v2)
The offset into the array was specified in bytes but should
be in terms of 32-bit words. Also prevent large reads that
would also cause a buffer overread.
v2: Read from correct offset from internal storage buffer.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Christian König <christian.koenig@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_ras.c')
0 files changed, 0 insertions, 0 deletions