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

!11828 v2 drm/msm/dpu: cleanup FB if dpu_format_populate_layout fails

parents 6966f4d4 e7ca0773
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -891,6 +891,8 @@ static int dpu_plane_prepare_fb(struct drm_plane *plane,
			new_state->fb, &layout);
	if (ret) {
		DPU_ERROR_PLANE(pdpu, "failed to get format layout, %d\n", ret);
		if (pstate->aspace)
			msm_framebuffer_cleanup(new_state->fb, pstate->aspace);
		return ret;
	}