]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: fbtft: Fix error path in fbtft_driver_module_init()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Jan 2022 18:13:37 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:51:45 +0000 (12:51 +0100)
commit099f1f1d4e5dce788688998888230bc7c2c92910
tree4aeef17c8fa4b9a3c1db3c856de5ad79aa87de58
parent54f556dc42ae302ca6d6024be7e6e52461f28963
staging: fbtft: Fix error path in fbtft_driver_module_init()

[ Upstream commit 426aca16e903b387a0b0001d62207a745c67cfd3 ]

If registering the platform driver fails, the function must not return
without undoing the spi driver registration first.

Fixes: c296d5f9957c ("staging: fbtft: core support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220118181338.207943-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/fbtft/fbtft.h