drm/amdgpu/gmc6: 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:14:01 -04:00
parent af0e4c0eaf
commit 22b19c575e

View File

@ -124,7 +124,7 @@ static int gmc_v6_0_init_microcode(struct amdgpu_device *adev)
chip_name = "hainan";
break;
default:
BUG();
return -EINVAL;
}
/* this memory configuration requires special firmware */