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

Commit 55d9038b authored by Shirish S's avatar Shirish S Committed by Alex Deucher
Browse files

drm/amd/display: fix null pointer dereference



While setting cursor position in case of mpo,
input_pixel_processor is not available for underlay,
hence add check of the same to avoid null pointer
access issue.

Signed-off-by: default avatarShirish S <shirish.s@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f5ba60fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -288,7 +288,7 @@ bool dc_stream_set_cursor_position(
			pos_cpy.enable = false;
			pos_cpy.enable = false;




		if (ipp->funcs->ipp_cursor_set_position != NULL)
		if (ipp !=NULL && ipp->funcs->ipp_cursor_set_position != NULL)
			ipp->funcs->ipp_cursor_set_position(ipp, &pos_cpy, &param);
			ipp->funcs->ipp_cursor_set_position(ipp, &pos_cpy, &param);


		if (mi != NULL && mi->funcs->set_cursor_position != NULL)
		if (mi != NULL && mi->funcs->set_cursor_position != NULL)