aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-07-13 13:13:49 +0000
committerAlex Deucher <[email protected]>2023-07-18 15:09:30 +0000
commita62e702ee1a1ae08693aeaa4ae1fc1448cbd5a19 (patch)
tree7a3618e38a9a3b520f77f4e94ccfc2a0177446ee /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/display: Eliminate warnings in amdgpu_dm_helpers.c (diff)
downloadkernel-a62e702ee1a1ae08693aeaa4ae1fc1448cbd5a19.tar.gz
kernel-a62e702ee1a1ae08693aeaa4ae1fc1448cbd5a19.zip
drm/amdgpu: Avoid possiblity of kernel crash in 'gmc_v8_0, gmc_v7_0_init_microcode()'
If the function 'gmc_v8_0_ or gmc_v7_0_init_microcode()' fails, the driver will just fail to load, hence return -EINVAL rather having BUG(), fixes WARNING: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants Fixes: 2f77b5931f68 ("drm/amdgpu: Fix error & warnings in gmc_v8_0.c") Fixes: 0cfc1d683046 ("drm/amdgpu: Fix errors & warnings in gmc_ v6_0, v7_0.c") Suggested-by: Alex Deucher <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions