Commit 15c665bb authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Linus Walleij

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: ca5be902 ("drm/mcde: Fix uninitialized variable")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190822211518.5578-1-christophe.jaillet@wanadoo.fr
parent d72cf01f
...@@ -485,7 +485,8 @@ static int mcde_probe(struct platform_device *pdev) ...@@ -485,7 +485,8 @@ static int mcde_probe(struct platform_device *pdev)
} }
if (!match) { if (!match) {
dev_err(dev, "no matching components\n"); dev_err(dev, "no matching components\n");
return -ENODEV; ret = -ENODEV;
goto clk_disable;
} }
if (IS_ERR(match)) { if (IS_ERR(match)) {
dev_err(dev, "could not create component match\n"); dev_err(dev, "could not create component match\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment