drm/amd/display: Check for valid stream_encode
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Wed, 29 May 2019 22:52:17 +0000 (18:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:09 +0000 (14:18 -0500)
commit24f1d1cee2bc9cb591145e21823d7865208a7991
treea63deadca96a8c6948c9c5059dadedda52fa511a
parent4fb6ec466dd50fdd94a1288b27b692da67b6c23d
drm/amd/display: Check for valid stream_encode

Before accessing it's vtable, check that stream_encoder is non-null.

Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c