summaryrefslogtreecommitdiff
path: root/drivers/misc/compdev/compdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/compdev/compdev.c')
-rw-r--r--drivers/misc/compdev/compdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/compdev/compdev.c b/drivers/misc/compdev/compdev.c
index e0c34879f65..d929a02c565 100644
--- a/drivers/misc/compdev/compdev.c
+++ b/drivers/misc/compdev/compdev.c
@@ -1120,8 +1120,10 @@ int compdev_create(struct mcde_display_device *ddev,
ret = -ENOMEM;
goto fail_create_ovly;
}
- mcde_dss_enable_overlay(cd->dss_ctx.ovly[i]);
- disable_overlay(cd->dss_ctx.ovly[i]);
+ if (mcde_dss_enable_overlay(cd->dss_ctx.ovly[i]))
+ goto fail_create_ovly;
+ if (disable_overlay(cd->dss_ctx.ovly[i]))
+ goto fail_create_ovly;
}
mcde_dss_get_native_resolution(ddev, &cd->dss_ctx.phy_size.width,