diff options
| author | Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org> | 2014-02-26 18:28:06 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:27:36 -0700 |
| commit | aa2c4a16e9ece05b519c082fc6cfdd6761f9afa9 (patch) | |
| tree | 890b07f7ca6ca65815b301e5e95154ce82ae52f6 /drivers/video/fbdev | |
| parent | b5a3c43023d4bd42c0f01bb26f02a4edfdc20830 (diff) | |
msm: mdss: Sanitize overlay kickoff inputs
Overlay kickoff in certain situations can be called without a ctl
attached to the frame buffer device. These situations need to
be captured and logical path should return safely.
CRs-fixed: 619588
Change-Id: Ibee6b59be667b7e5c9841ffb49c67d86bde45026
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_overlay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c index cd07984f9a51..da42ad4f4a19 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c +++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c @@ -993,6 +993,11 @@ int mdss_mdp_overlay_kickoff(struct msm_fb_data_type *mfd, int ret = 0; int sd_in_pipe = 0; + if (!ctl) { + pr_warn("kickoff on fb=%d without a ctl attched\n", mfd->index); + return ret; + } + if (ctl->shared_lock) mutex_lock(ctl->shared_lock); |
