diff options
| author | Dhaval Patel <pdhaval@codeaurora.org> | 2016-03-15 17:43:59 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:03:57 -0700 |
| commit | e4d22fbab14df9f08e98c5f0637172103d9877eb (patch) | |
| tree | a4e94ac28886639be677341de6e1575c1d5e6bad /drivers/video/fbdev | |
| parent | 1183ae9f66d66c7f7aa702b8462e12ee895251c6 (diff) | |
msm: mdss: fix the null check in framebuffer driver
Fix fb null check in framebuffer driver during
atomic API call.
Change-Id: I2b92cba0d106ce00dc94faa09b5c0cc869fd1678
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index f9af0f0fea4b..221b286b46d9 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -3177,7 +3177,7 @@ int mdss_fb_atomic_commit(struct fb_info *info, if (!mfd || (!mfd->op_enable)) { pr_err("mfd is NULL or operation not permitted\n"); - goto end; + return -EPERM; } if ((mdss_fb_is_power_off(mfd)) && |
