]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: Keep malloc ref to MST port
authorLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 00:53:34 +0000 (19:53 -0500)
committerLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 01:12:24 +0000 (20:12 -0500)
commita28416295a4fd273f1bf1955bd2e7e195a8a20d4
tree0e6841dc5910da14811c9414f67300281761c95f
parent84af662fbaa597d6424946ad876cc0ed20417954
drm/amdgpu/display: Keep malloc ref to MST port

Just like i915 and nouveau, it's a good idea for us to hold a malloc
reference to the port here so that we never pass a freed pointer to any
of the DP MST helper functions.

Also, we stop unsetting aconnector->port in
dm_dp_destroy_mst_connector(). There's literally no point to that
assignment that I can see anyway.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@redhat.com>
Cc: Jerry Zuo <Jerry.Zuo@amd.com>
Cc: Juston Li <juston.li@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190111005343.17443-12-lyude@redhat.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c