drm/radeon: silence UBSAN warning
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/radeon: silence UBSAN warning
Convert a variable sized array from [1] to [].
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/pptable.h +1 -1
@@ -432,7 +432,7 @@ typedef struct _ATOM_PPLIB_STATE_V2/** * Driver will read the first ucNumDPMLevels in this array */ -UCHAR clockInfoIndex[1 ]; +UCHAR clockInfoIndex[]; }ATOM_PPLIB_STATE_V2 ; typedef struct _StateArray{
Signature · 1 line
2.44.0
Am 23.03.24 um 22:39 schrieb Alex Deucher:
Quoted 3 lines
Convert a variable sized array from [1] to [].
Signed-off-by Alex Deucher <[email protected]>
Acked-by Christian König <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/pptable.h +1
-1@@ -432,7 +432,7 @@ typedef struct _ATOM_PPLIB_STATE_V2/** * Driver will read the first ucNumDPMLevels in this array */ -UCHAR clockInfoIndex[1 ]; +UCHAR clockInfoIndex[]; }ATOM_PPLIB_STATE_V2 ; typedef struct _StateArray{