Unverified Commit 31711b2c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14864 drm/sti: avoid potential dereference of error pointers in sti_gdp_atomic_check

parents 70a8e8cd 6d062434
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -629,6 +629,9 @@ static int sti_gdp_atomic_check(struct drm_plane *drm_plane,

	mixer = to_sti_mixer(crtc);
	crtc_state = drm_atomic_get_crtc_state(state->state, crtc);
	if (IS_ERR(crtc_state))
		return PTR_ERR(crtc_state);

	mode = &crtc_state->mode;
	dst_x = state->crtc_x;
	dst_y = state->crtc_y;