drm/dp/mst: Remove port after removing connector.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 11 Aug 2015 07:54:29 +0000 (09:54 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Aug 2015 09:30:38 +0000 (12:30 +0300)
commit4772ff03df8094fd99d28de5fcf5df3a3e9c68bb
tree2a4d3df228d96c5aac622bdcf1a7289a08bcc5bb
parent5677d67ae3949f09f57357241b88222d49b8c782
drm/dp/mst: Remove port after removing connector.

The port is removed synchronously, but the connector delayed.
This causes a use after free which can cause a kernel BUG with
slug_debug=FPZU. This is fixed by freeing the port after the
connector.

This fixes a regression introduced with
6b8eeca65b18ae77e175cc2b6571731f0ee413bf
"drm/dp/mst: close deadlock in connector destruction."

Cc: stable@vger.kernel.org
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_crtc.h