]> 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:44:50 +0000 (12:44 +0100)
commit13931dc34ef2b9f680241c62a6dd8eb77c540f58
treee69dbcc1f0a501414c4363946df2b8ce5a6b710a
parent23dfa42a0a2a91d640ef3fce585194b970d8680c
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