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

Commit 07d66560 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: avoid wb commit with null output framebuffer"

parents 1bedddb7 01bbce0b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -731,11 +731,10 @@ static int sde_encoder_phys_wb_atomic_check(
	SDE_DEBUG("[roi:%u,%u,%u,%u]\n", wb_roi.x, wb_roi.y,
			wb_roi.w, wb_roi.h);

	/* bypass check if commit with no framebuffer */
	fb = sde_wb_connector_state_get_output_fb(conn_state);
	if (!fb) {
		SDE_DEBUG("no output framebuffer\n");
		return 0;
		SDE_ERROR("no output framebuffer\n");
		return -EINVAL;
	}

	SDE_DEBUG("[fb_id:%u][fb:%u,%u]\n", fb->base.id,