drm/amdgpu/sdma2.4: replace BUG() with an error

There's no need to crash the kernel for this case.

Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2026-06-15 19:06:11 -04:00
parent 1804cde52d
commit 8fe5f5e2da

View File

@ -138,7 +138,7 @@ static int sdma_v2_4_init_microcode(struct amdgpu_device *adev)
chip_name = "topaz";
break;
default:
BUG();
return -EINVAL;
}
for (i = 0; i < adev->sdma.num_instances; i++) {