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)) &&