Unverified Commit 08e54ea5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents de5817b4 28213f12
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -634,6 +634,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;