Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dabe1954 authored by Insu Yun's avatar Insu Yun Committed by Dave Airlie
Browse files

drm: fix missing reference counting decrease



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: default avatarInsu Yun <wuninsu@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 36f90b0a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2446,6 +2446,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;
		}
	}