drm/amdgpu/cik_sdma: 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:03:27 -04:00
parent c6b4a50801
commit 1804cde52d

View File

@ -125,7 +125,8 @@ static int cik_sdma_init_microcode(struct amdgpu_device *adev)
case CHIP_MULLINS:
chip_name = "mullins";
break;
default: BUG();
default:
return -EINVAL;
}
for (i = 0; i < adev->sdma.num_instances; i++) {