]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix the warning division or modulo by zero
authorJesse Zhang <jesse.zhang@amd.com>
Fri, 10 May 2024 09:32:53 +0000 (17:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:11:47 +0000 (16:11 -0400)
commit1a00f2ac82d6bc6689388c7edcd2a4bd82664f3c
tree47d1db672984ee0a5dd7d0f0ab3c44ca03130cd1
parent56116dc7a9fdd2ce2b0e01d16f772a766a0219e0
drm/amdgpu: Fix the warning division or modulo by zero

Checks the partition mode and returns an error for an invalid mode.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c