msm: mdss: Add check to fix null pointer dereference
In mdss_mdp_overlay_kickoff, the mixer_left can be accessed without checking whether it is allocated or not which can result in null pointer dereference. This is fixed by adding a check to decide if mixer_left is NULL or not. CRs-Fixed: 1070611 Change-Id: Iab4254a492b7b5930984dbb8ea91597a5506aca6 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
This commit is contained in:
parent
a80e267a8c
commit
61a2851465
1 changed files with 1 additions and 1 deletions
|
@ -2278,7 +2278,7 @@ int mdss_mdp_overlay_kickoff(struct msm_fb_data_type *mfd,
|
|||
int ret = 0;
|
||||
struct mdss_mdp_commit_cb commit_cb;
|
||||
|
||||
if (!ctl)
|
||||
if (!ctl || !ctl->mixer_left)
|
||||
return -ENODEV;
|
||||
|
||||
ATRACE_BEGIN(__func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue