drm/mcde: Fix an error handling path in 'mcde_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 22 Aug 2019 21:15:18 +0000 (23:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:43:29 +0000 (08:43 +0100)
commit6dc2a7e67e1fe4eee30a9bca40bffe308ac884cb
treebd53f4c3ff3a1442a3515537f248d61cf97bef41
parent526152a23915a1bc8380bf11e497548b8b03968d
drm/mcde: Fix an error handling path in 'mcde_probe()'

[ Upstream commit 15c665bb4637310bc8ce5f357b6a6e5a8aafc7c1 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mcde/mcde_drv.c