diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-30 02:28:40 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-30 02:28:40 +0000 |
commit | a6d0d8804d9ce71f1451d380b884ae8802d9af0c (patch) | |
tree | 93a13856c240dc3646f314cfe428e5ca78320bfb /sys/dev/pci/drm/amd/pm | |
parent | ae82413064ab9d35ce4e9a937cbf553df3c29f54 (diff) |
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
From Mario Limonciello
fc9ac0e8e0bcb3740c6eaad3a1a50c20016d422b in linux-6.1.y/6.1.64
760efbca74a405dc439a013a5efaa9fadc95a8c3 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/pm')
-rw-r--r-- | sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h b/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h index b0ac4d121ad..41444e27bfc 100644 --- a/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h +++ b/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h @@ -179,7 +179,7 @@ typedef struct _ATOM_Tonga_MCLK_Dependency_Record { typedef struct _ATOM_Tonga_MCLK_Dependency_Table { UCHAR ucRevId; UCHAR ucNumEntries; /* Number of entries. */ - ATOM_Tonga_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ + ATOM_Tonga_MCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ } ATOM_Tonga_MCLK_Dependency_Table; typedef struct _ATOM_Tonga_SCLK_Dependency_Record { @@ -194,7 +194,7 @@ typedef struct _ATOM_Tonga_SCLK_Dependency_Record { typedef struct _ATOM_Tonga_SCLK_Dependency_Table { UCHAR ucRevId; UCHAR ucNumEntries; /* Number of entries. */ - ATOM_Tonga_SCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ + ATOM_Tonga_SCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ } ATOM_Tonga_SCLK_Dependency_Table; typedef struct _ATOM_Polaris_SCLK_Dependency_Record { |