drm/amd/powerplay: Fix NULL pointer deref on driver unbind.
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: Fix NULL pointer deref on driver unbind.
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +7 -1
@@ -286,6 +286,12 @@ static int pp_resume(void *handle)return hwmgr_hw_resume (hwmgr); } +static int pp_set_clockgating_state (void *handle, +enum amd_clockgating_state state) +{ +return 0 ; +} +static const struct amd_ip_funcs pp_ip_funcs = { .name ="powerplay" , .early_init = pp_early_init,
@@ -300,7 +306,7 @@ static const struct amd_ip_funcs pp_ip_funcs = { .is_idle = pp_is_idle, .wait_for_idle = pp_wait_for_idle, .soft_reset = pp_sw_reset, - .set_clockgating_state = NULL, + .set_clockgating_state = pp_set_clockgating_state, .set_powergating_state = pp_set_powergating_state, };
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): 1521492904-21630-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Andrey Grodzovsky <[email protected]>
Sent: Monday, March 19, 2018 4:55 PM
To: [email protected]
Cc: Grodzovsky, Andrey; Zhu, Rex
Subject: [PATCH] drm/amd/powerplay: Fix NULL pointer deref on driver unbind.
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +7 -1
@@ -286,6 +286,12 @@ static int pp_resume(void *handle)return hwmgr_hw_resume (hwmgr); } +static int pp_set_clockgating_state (void *handle, +enum amd_clockgating_state state) +{ +return 0 ; +} +static const struct amd_ip_funcs pp_ip_funcs = { .name ="powerplay" , .early_init = pp_early_init,
@@ -300,7 +306,7 @@ static const struct amd_ip_funcs pp_ip_funcs = { .is_idle = pp_is_idle, .wait_for_idle = pp_wait_for_idle, .soft_reset = pp_sw_reset, - .set_clockgating_state = NULL, + .set_clockgating_state = pp_set_clockgating_state, .set_powergating_state = pp_set_powergating_state, };
--
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