projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17da41b
)
drm/amdgpu: check mmhub_funcs pointer before refering to it
author
Hawking Zhang
<Hawking.Zhang@amd.com>
Sat, 31 Aug 2019 05:18:40 +0000
(13:18 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:36:16 +0000
(17:36 -0500)
mmhub callback functions are not initialized for all the ASICs
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index
420dcdd
..
08a47a5
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@
-799,7
+799,7
@@
static int gmc_v9_0_ecc_late_init(void *handle)
goto umc_late_fini;
}
- if (adev->mmhub_funcs->ras_late_init) {
+ if (adev->mmhub_funcs
&& adev->mmhub_funcs
->ras_late_init) {
r = adev->mmhub_funcs->ras_late_init(adev);
if (r)
return r;