]> 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)
commit87d8504a02ce2888d56ec48793f7d17952e6d907
tree6ac75565ad75fed32d546d779ddb4264a8ec5f05
parent6a704e31f3cddd148d18a1a616e365ef62768c3e
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