Commit ea67deb
drm/amdgpu: fix out of bounds access in gfx11 during ip dump
During ip dump in gfx11 the index variable is reused but is
not reinitialized to 0 and this causes the index calculation
to be wrong and access out of bound access.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 94845ea commit ea67deb
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6411 | 6411 | | |
6412 | 6412 | | |
6413 | 6413 | | |
| 6414 | + | |
6414 | 6415 | | |
6415 | 6416 | | |
6416 | 6417 | | |
| |||
6475 | 6476 | | |
6476 | 6477 | | |
6477 | 6478 | | |
| 6479 | + | |
6478 | 6480 | | |
6479 | 6481 | | |
6480 | 6482 | | |
| |||
0 commit comments