diff options
| author | Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org> | 2013-11-07 18:45:47 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:23:13 -0700 |
| commit | b115e809fe83d672b677c5c0c8ae2a9aef199da4 (patch) | |
| tree | 58c8b404584b6a16933513df822420e7ac5f580a /drivers | |
| parent | d9e2f7b838ef949fbc0f5f7bafaee22df2a3a93b (diff) | |
msm: mdss: Sanitize input to writeback kickoff
The input frame buffer structure needs to be sanity checked for
the presence of ctl. It avoids initiating kickoff sequence
with an unattached ctl which can lead to a kernel panic.
CRs-fixed: 566720
Change-Id: I4b5cb7983092853aa2286bddee051a5e250e3744
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_wb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_wb.c b/drivers/video/fbdev/msm/mdss_mdp_wb.c index 5fe587ffb4df..c56d5fb4a251 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_wb.c +++ b/drivers/video/fbdev/msm/mdss_mdp_wb.c @@ -566,6 +566,11 @@ int mdss_mdp_wb_kickoff(struct msm_fb_data_type *mfd) int ret = 0; struct mdss_mdp_writeback_arg wb_args; + if (!ctl) { + pr_err("no ctl attached to fb=%d devicet\n", mfd->index); + return -ENODEV; + } + if (!ctl->power_on) return 0; |
