Commit f39e127
committed
drm/amdgpu/gmc9.0: add bounds checking for cid
The value should never exceed the array size as those
are the only values the hardware is expected to return,
but add checks anyway.
Cc: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e14d468)
Cc: stable@vger.kernel.org1 parent 9c52f49 commit f39e127
1 file changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
| 666 | + | |
666 | 667 | | |
667 | 668 | | |
668 | | - | |
| 669 | + | |
| 670 | + | |
669 | 671 | | |
670 | 672 | | |
671 | | - | |
| 673 | + | |
| 674 | + | |
672 | 675 | | |
673 | 676 | | |
674 | | - | |
| 677 | + | |
| 678 | + | |
675 | 679 | | |
676 | 680 | | |
677 | 681 | | |
678 | | - | |
| 682 | + | |
| 683 | + | |
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
682 | | - | |
| 687 | + | |
| 688 | + | |
683 | 689 | | |
684 | 690 | | |
685 | 691 | | |
686 | | - | |
| 692 | + | |
| 693 | + | |
687 | 694 | | |
688 | 695 | | |
689 | 696 | | |
| |||
0 commit comments