]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: add NULL checks for clock manager pointer
authorAhzo <Ahzo@tutanota.com>
Fri, 11 Oct 2019 17:55:03 +0000 (19:55 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:55:32 +0000 (15:55 -0400)
commited4766022f88dfba871d9cc2975e834a32a16bb4
tree6ac75565ad75fed32d546d779ddb4264a8ec5f05
parent97c002be4113e50ddca424c7ebbfd4840402605f
drm/amd/display: add NULL checks for clock manager pointer

This fixes kernel NULL pointer dereferences on shutdown:
RIP: 0010:build_audio_output.isra.0+0x97/0x110 [amdgpu]
RIP: 0010:enable_link_dp+0x186/0x300 [amdgpu]

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ahzo <Ahzo@tutanota.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c