drm/amd/display: add NULL pointer check
authorCharlene Liu <charlene.liu@amd.com>
Sat, 20 May 2023 00:43:30 +0000 (20:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:49:56 +0000 (12:49 -0400)
commit389c6b3e120303715c018d1bfc7bab02b50ca3f4
tree7fe4fb5eba59c6dd8a8392447bd08b6c6a9dbbce
parent3ffb193969c57afd4096cfb107ca2cc3bb0c55d9
drm/amd/display: add NULL pointer check

[why]
check dmub_Srv exist or not before accessing dmub.

Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c