]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix i2s_pdata out of bound array access
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 27 Jul 2022 10:45:43 +0000 (16:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:16 +0000 (16:05 -0400)
commit05e10323908129b5a43b74edf472038946f8d5de
tree817cece8f609a082b428f2ed7af98aa89f06f068
parent8124abf0d5c4ca35c8639b6058fafaad217b038c
drm/amdgpu: fix i2s_pdata out of bound array access

Fixed following Smatch static checker warning:

    drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c:393 acp_hw_init()
    error: buffer overflow 'i2s_pdata' 3 <= 3
    drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c:396 acp_hw_init()
    error: buffer overflow 'i2s_pdata' 3 <= 3

Fixes: af4481ca025f ("drm/amdgpu: create I2S platform devices for Jadeite platform")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c