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

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

Merge "disp: msm: sde: add check to fix null pointer dereference"

parents e2bd8f1a a3fdf902
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1193,6 +1193,9 @@ static int pstate_cmp(const void *a, const void *b)
	int pa_zpos, pb_zpos;
	enum sde_layout pa_layout, pb_layout;

	if ((!pa || !pa->sde_pstate) || (!pb || !pb->sde_pstate))
		return rc;

	pa_zpos = sde_plane_get_property(pa->sde_pstate, PLANE_PROP_ZPOS);
	pb_zpos = sde_plane_get_property(pb->sde_pstate, PLANE_PROP_ZPOS);