]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/dm: Fix NULL pointer crash during DP MST hotplug
authorShashank Sharma <shashank.sharma@amd.com>
Thu, 15 Apr 2021 17:48:12 +0000 (23:18 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:45 +0000 (16:32 -0400)
commit9659d731f076ebd433228a00d385b1994cf51fe7
treee1a7fea66248302f516d2c889b6572bea4fdd6dd
parentec1f3088a97a7816ea950ee5a670d6692ab649df
drm/amdgpu/dm: Fix NULL pointer crash during DP MST hotplug

This patch checks the return value of the function
dc_link_add_remote_sink before using it. This was causing
a crash during consecutive hotplugs of DP MST displays.

Cc: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c