Unverified Commit 7f7a9cbd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14861 drm/sti: avoid potential dereference of error pointers

parents 4fbc6335 0746082d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -200,6 +200,9 @@ static int sti_cursor_atomic_check(struct drm_plane *drm_plane,
		return 0;

	crtc_state = drm_atomic_get_crtc_state(state, crtc);
	if (IS_ERR(crtc_state))
		return PTR_ERR(crtc_state);

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