Unverified Commit 6af42fee authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15678 drm: msm: fix possible memory leak in mdp5_crtc_cursor_set()

parents e1f872ef 1175c643
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -911,8 +911,10 @@ static int mdp5_crtc_cursor_set(struct drm_crtc *crtc,

	ret = msm_gem_get_iova(cursor_bo, kms->aspace,
			&mdp5_crtc->cursor.iova);
	if (ret)
	if (ret) {
		drm_gem_object_put(cursor_bo);
		return -EINVAL;
	}

	pm_runtime_get_sync(&pdev->dev);