[PATCH] drm/mst: use kref_get_unless_zero for looking up mst branch device

2014-11-10 Thread Dave Airlie
From: Dave Airlie The backtrace below shows that while we tear down a branch device, when we remove the connector, we can attempt to disable MST on the port we are tearing down, since the port is going away, there it has a refcount of 0 already, so the validated ref lookup is trying to kref_get a

[Intel-gfx] [PATCH] drm/mst: use kref_get_unless_zero for looking up mst branch device

2014-11-10 Thread Daniel Vetter
On Mon, Nov 10, 2014 at 7:41 AM, Dave Airlie wrote: > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c > b/drivers/gpu/drm/drm_dp_mst_topology.c > index ce1113c..f703a5b 100644 > --- a/drivers/gpu/drm/drm_dp_mst_topology.c > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c > @@ -882,8 +882,10 @@ sta