mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
drm/amd/display: Prevent crash when disable stream
commit 72d72e8fdd
upstream.
[Why]
Disabling stream encoder invokes a function that no longer exists.
[How]
Check if the function declaration is NULL in disable stream encoder.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a5ca1be7f9
commit
2b17133a0a
1 changed files with 2 additions and 1 deletions
|
@ -1185,6 +1185,7 @@ void dce110_disable_stream(struct pipe_ctx *pipe_ctx)
|
||||||
if (dccg) {
|
if (dccg) {
|
||||||
dccg->funcs->disable_symclk32_se(dccg, dp_hpo_inst);
|
dccg->funcs->disable_symclk32_se(dccg, dp_hpo_inst);
|
||||||
dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, dp_hpo_inst);
|
dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, dp_hpo_inst);
|
||||||
|
if (dccg && dccg->funcs->set_dtbclk_dto)
|
||||||
dccg->funcs->set_dtbclk_dto(dccg, &dto_params);
|
dccg->funcs->set_dtbclk_dto(dccg, &dto_params);
|
||||||
}
|
}
|
||||||
} else if (dccg && dccg->funcs->disable_symclk_se) {
|
} else if (dccg && dccg->funcs->disable_symclk_se) {
|
||||||
|
|
Loading…
Reference in a new issue