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:17:19 +0000 (14:17 -0500)
commit288af96df16b629552c5bcc9ec0f0191c6198a72
treefdb674f8b9ad10fe521a97d7bcaac4e30c05c9b0
parentc7990daebe71d11a9e360b5c3b0ecd1846a3a4bb
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