drm/amd/display: Check engine is not NULL before acquiring
authorAric Cyr <aric.cyr@amd.com>
Wed, 22 Jan 2020 03:50:13 +0000 (22:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:37 +0000 (15:04 -0500)
commit28e7a7f4fb4b9dc364a054ae01b87f7111d5ba2d
tree485cc61827be75017f8a0a27f39b519f0610f210
parent84fc79899ee7a20b65e91b533b63530141896f8c
drm/amd/display: Check engine is not NULL before acquiring

[Why]
Engine can be NULL in some cases, so we must not acquire it.

[How]
Check for NULL engine before acquiring.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c