Unverified Commit 4a3dd177 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents b32dbd07 4a8e703d
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;
	}