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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 12 Nov 2018 15:07:12 +0000 (17:07 +0200)
commit7c4512300cfa5a4dcc8c1c52ae61e3fa4bd11a39
tree36a9fd6575be59c64ea191e67c2ab26db08b0a73
parentfb5bbae9b1333d44023713946fdd28db0cd85751
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
(cherry picked from commit 66a5ab1034be801630816d1fa6cfc30db1a2f0b0)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_dp_mst.c