mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-29 20:58:57 -04:00
drm/amdgpu/psp11: 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:
@@ -136,7 +136,9 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
|
||||
err = psp_init_toc_microcode(psp, ucode_prefix);
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
dev_warn(adev->dev, "Unsupported MP0 version 0x%08x\n",
|
||||
amdgpu_ip_version(adev, MP0_HWIP, 0));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user