drm/amd: add some extra checks that is_dig_enabled is defined
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Dec 2021 15:45:23 +0000 (09:45 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:33:16 +0000 (16:33 -0500)
commit4fe3819443a13f8ecf11f53559ada5711dd8d4b1
treebbd0a5afadaa240337493e63c68669358d0eb95b
parent28fe416466f2f09b47a9c5e81fa1ac140512f3d5
drm/amd: add some extra checks that is_dig_enabled is defined

There are a few places that this isn't checked that could potentially
be a NULL pointer access.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c