drm/amdgpu: Fix null pointer amdgpu_device_fw_loading
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix null pointer amdgpu_device_fw_loading
Need to check adev->powerplay.pp_funcs.
Signed-off-by Emily Deng <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -1651,7 +1651,7 @@ static int amdgpu_device_fw_loading(struct amdgpu_device *adev) } } -if (adev->powerplay.pp_funcs->load_firmware) { +if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->load_firmware) { r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle);if (r) {pr_err ("firmware loading failed\n" );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1539844038-5496-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Huang Rui
Reviewed-byQuoted 3 lines · Emily Deng
Need to check
adev->powerplay.pp_funcs.Signed-off-by Emily Deng <[email protected]>
Reviewed-by Huang Rui <[email protected]>
Quoted 24 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -1651,7 +1651,7 @@ static int amdgpu_device_fw_loading(struct amdgpu_device *adev) } } -if (adev->powerplay.pp_funcs->load_firmware) { +if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->load_firmware) { r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle);if (r) {pr_err ("firmware loading failed\n" );Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx