[PATCH] drm/radeon: silence UBSAN warning
Christian König
ckoenig.leichtzumerken at gmail.com
Thu Apr 4 12:18:58 UTC 2024
Am 23.03.24 um 22:39 schrieb Alex Deucher:
> Convert a variable sized array from [1] to [].
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Acked-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/radeon/pptable.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/pptable.h b/drivers/gpu/drm/radeon/pptable.h
> index 94947229888b..a7f9553b648b 100644
> --- a/drivers/gpu/drm/radeon/pptable.h
> +++ b/drivers/gpu/drm/radeon/pptable.h
> @@ -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{
More information about the amd-gfx
mailing list