drm/msm/dp: release extra mst port reference

When adding a mst port in simulator mode, an
extra reference is acquired which never gets
released. This causes the connectors to not be
destroyed during a hpd disconnect, therefore the
reference should be released.

Change-Id: I80e661bcefae52f9e0e57e9b234c4955b56d4d6a
Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
This commit is contained in:
Fuad Hossain 2019-01-22 16:19:24 -05:00 committed by Tatenda Chipeperekwa
parent 3723400e5b
commit c4ac38b58e

View file

@ -171,10 +171,13 @@ static void dp_mst_sim_add_port(struct dp_mst_private *mst,
mutex_lock(&mstb->mgr->lock);
list_del(&port->next);
mutex_unlock(&mstb->mgr->lock);
return;
goto put_port;
}
(*mstb->mgr->cbs->register_connector)(port->connector);
}
put_port:
kref_put(&port->kref, NULL);
}
static void dp_mst_sim_link_probe_work(struct work_struct *work)