]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: use u32 for buf size in __amdgpu_eeprom_xfer
authorTao Zhou <tao.zhou1@amd.com>
Mon, 20 May 2024 08:47:32 +0000 (16:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 14:57:47 +0000 (10:57 -0400)
commit76bec2a031630124002260c0ddc613b761819e2b
tree6b094b82d0c7ba6c193a5d2d6f14fdeb9132540f
parentfda812ebe3d95ed9c7c894b9a2d4bfc2926d46ec
drm/amdgpu: use u32 for buf size in __amdgpu_eeprom_xfer

And also make sure the value of msg[1].len should be in the range of u16.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c