mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm/mcde: Fix an error handling path in 'mcde_probe()'
[ Upstream commit15c665bb46] If we don't find any matching components, we should go through the error handling path, in order to free some resources. Fixes:ca5be902a8("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
701be55e4b
commit
cc12de4c09
@@ -487,7 +487,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");
|
||||
|
||||
Reference in New Issue
Block a user