]> git.baikalelectronics.ru Git - kernel.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)
commit7c18c2ae83f70a77dab5c522dcfb038e9163c64b
tree6ac75565ad75fed32d546d779ddb4264a8ec5f05
parent21f76423e044ec64a0905f6bec0bb8d529f4027b
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