diff options
author | Insu Yun <wuninsu@gmail.com> | 2016-02-01 11:08:29 -0500 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-02-15 15:45:35 -0500 |
commit | 81c5fe348992a0896473724c556b6632b8acd4a7 (patch) | |
tree | 4c1a654ac6af72bb051aea72f6a2a43d63797b3f | |
parent | df2aeb317e3e6d1da2de045748064df63bc11944 (diff) | |
download | lwn-81c5fe348992a0896473724c556b6632b8acd4a7.tar.gz lwn-81c5fe348992a0896473724c556b6632b8acd4a7.zip |
drm: fix missing reference counting decrease
[ Upstream commit dabe19540af9e563d526113bb102e1b9b9fa73f9 ]
In drm_dp_mst_allocate_vcpi, it returns true in two paths,
but in one path, there is no reference couting decrease.
Signed-off-by: Insu Yun <wuninsu@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 2d3bad43ad90..253339158acd 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -2396,6 +2396,7 @@ bool drm_dp_mst_allocate_vcpi(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp DRM_DEBUG_KMS("payload: vcpi %d already allocated for pbn %d - requested pbn %d\n", port->vcpi.vcpi, port->vcpi.pbn, pbn); if (pbn == port->vcpi.pbn) { *slots = port->vcpi.num_slots; + drm_dp_put_port(port); return true; } } |