Skip to content

drm/amdgpu: Remove redundant SIZE_MAX checks

hdr->len must be 8-byte aligned, so it cannot be SIZE_MAX even on 32-bit platforms. Since hdr->len is less than SIZE_MAX, the 'len' argument to validate_chunk_inputs() must also be less than SIZE_MAX. Therefore, the checks for SIZE_MAX are unnecessary and can be be removed.

Signed-off-by: Demi Marie Obenour demi@invisiblethingslab.com

Merge request reports