There's no need to crash the kernel for this case.
Signed-off-by: Alex Deucher <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c
b/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c
index 00b4a34e6601f..4b0ab1025c2fb 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c
@@ -133,7 +133,7 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)
return err;
break;
default:
- BUG();
+ return -EINVAL;
}
return 0;
--
2.54.0