drm/i915: Fix possible race in intel_dp_add_mst_connector()
authorLyude Paul <lyude@redhat.com>
Tue, 6 Nov 2018 21:30:12 +0000 (16:30 -0500)
committerLyude Paul <lyude@redhat.com>
Wed, 7 Nov 2018 20:10:11 +0000 (15:10 -0500)
commit66a5ab1034be801630816d1fa6cfc30db1a2f0b0
tree1bf53f7a0bd8b5d0dfda5e0d69069d6a9e6e618e
parentd0105af939769393d6447a04cee2d1ae12e3f09a
drm/i915: Fix possible race in intel_dp_add_mst_connector()

This hasn't caused any issues yet that I'm aware of, but as Ville
Syrjälä pointed out - we need to make sure that
intel_connector->mst_port is set before initializing MST connectors,
since in theory we could potentially check intel_connector->mst_port in
i915_hpd_poll_init_work() after registering the connector but before
having written it's value.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20181106213017.14563-2-lyude@redhat.com
drivers/gpu/drm/i915/intel_dp_mst.c