mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "disp: msm: sde: add check to fix null pointer dereference"
This commit is contained in:
commit
316f28ff40
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue