mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 21:57:30 +00:00
drm/amdgpu: Avoid RAS recovery init when no RAS support.
Fixes driver load regression on APUs. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cbfae36cea
commit
4d1337d2e9
1 changed files with 6 additions and 1 deletions
|
@ -1496,9 +1496,14 @@ out:
|
|||
int amdgpu_ras_recovery_init(struct amdgpu_device *adev)
|
||||
{
|
||||
struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
|
||||
struct ras_err_handler_data **data = &con->eh_data;
|
||||
struct ras_err_handler_data **data;
|
||||
int ret;
|
||||
|
||||
if (con)
|
||||
data = &con->eh_data;
|
||||
else
|
||||
return 0;
|
||||
|
||||
*data = kmalloc(sizeof(**data), GFP_KERNEL | __GFP_ZERO);
|
||||
if (!*data) {
|
||||
ret = -ENOMEM;
|
||||
|
|
Loading…
Add table
Reference in a new issue