]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Keep malloc references to MST ports
authorLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 00:53:33 +0000 (19:53 -0500)
committerLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 01:12:23 +0000 (20:12 -0500)
commit6c3fd96060716cb91bcb11d09969bd53b0913587
tree0567a4747e4e4a458f86bde93d75497d2074ebd4
parent26f547899bb290943161e22413952e6a31e9e914
drm/i915: Keep malloc references to MST ports

So that the ports stay around until we've destroyed the connectors, in
order to ensure that we don't pass an invalid pointer to any MST helpers
once we introduce the new MST VCPI helpers.

Changes since v1:
* Move drm_dp_mst_get_port_malloc() to where we assign
  intel_connector->port - danvet

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