diff options
author | Charlene Liu <charlene.liu@amd.com> | 2018-09-07 19:31:34 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-27 04:09:05 +0200 |
commit | 5aa9935b6531dfe6ebdc1cacbc8d8a736620345f (patch) | |
tree | eedd3e8f2bbe5350ec7c61a129810a76e9559905 | |
parent | drm/amd/display: use proper pipe_ctx index (diff) | |
download | linux-5aa9935b6531dfe6ebdc1cacbc8d8a736620345f.tar.xz linux-5aa9935b6531dfe6ebdc1cacbc8d8a736620345f.zip |
drm/amd/display: add pp_smu NULL pointer check
add pp_smu NULL ptr check
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 7d9be87140cc..61bb3d52641c 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1395,7 +1395,7 @@ static void notify_display_count_to_smu( * sent as part of pplib_apply_display_requirements. * So just return. */ - if (!pp_smu->set_display_count) + if (!pp_smu || !pp_smu->set_display_count) return; display_count = 0; |