diff options
| author | Luben Tuikov <[email protected]> | 2021-02-02 23:36:25 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-07-01 04:24:40 +0000 |
| commit | edb63a53081d37679c5145a8125f5df105bc131e (patch) | |
| tree | f8fbada54889dd259a88effe8a443a959e15910b /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amdgpu: RAS and FRU now use 19-bit I2C address (diff) | |
| download | kernel-edb63a53081d37679c5145a8125f5df105bc131e.tar.gz kernel-edb63a53081d37679c5145a8125f5df105bc131e.zip | |
drm/amdgpu: Fix wrap-around bugs in RAS
Fix the size of the EEPROM from 256000 bytes
to 262144 bytes (256 KiB).
Fix a couple or wrap around bugs. If a valid
value/address is 0 <= addr < size, the inverse of
this inequality (barring negative values which
make no sense here) is addr >= size. Fix this in
the RAS code.
Cc: Jean Delvare <[email protected]>
Cc: Alexander Deucher <[email protected]>
Cc: Andrey Grodzovsky <[email protected]>
Cc: Lijo Lazar <[email protected]>
Cc: Stanley Yang <[email protected]>
Cc: Hawking Zhang <[email protected]>
Signed-off-by: Luben Tuikov <[email protected]>
Acked-by: Alexander Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
