aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mcde
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2019-08-22 23:15:18 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-08-26 22:07:09 +0200
commit15c665bb4637310bc8ce5f357b6a6e5a8aafc7c1 (patch)
tree9162e0f437df8ac39baceea40ac3ddfde5069c02 /drivers/gpu/drm/mcde
parentdrm/mipi-dbi: fix a loop in debugfs code (diff)
downloadlinux-dev-15c665bb4637310bc8ce5f357b6a6e5a8aafc7c1.tar.xz
linux-dev-15c665bb4637310bc8ce5f357b6a6e5a8aafc7c1.zip
drm/mcde: Fix an error handling path in 'mcde_probe()'
If we don't find any matching components, we should go through the error handling path, in order to free some resources. Fixes: ca5be902a87d ("drm/mcde: Fix uninitialized variable") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190822211518.5578-1-christophe.jaillet@wanadoo.fr
Diffstat (limited to 'drivers/gpu/drm/mcde')
-rw-r--r--drivers/gpu/drm/mcde/mcde_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 982fe8485a61..0561fbd99df0 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -485,7 +485,8 @@ static int mcde_probe(struct platform_device *pdev)
}
if (!match) {
dev_err(dev, "no matching components\n");
- return -ENODEV;
+ ret = -ENODEV;
+ goto clk_disable;
}
if (IS_ERR(match)) {
dev_err(dev, "could not create component match\n");