drm/amdgpu/ucode: WARN() rather than BUG()

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:02:37 -04:00
parent 07359ed21e
commit c6b4a50801

View File

@@ -1478,7 +1478,8 @@ void amdgpu_ucode_ip_version_decode(struct amdgpu_device *adev, int block_type,
ip_name = "isp";
break;
default:
BUG();
WARN(1, "invalid HWIP %d\n", block_type);
return;
}
maj = IP_VERSION_MAJ(version);