fbdev: imsttfb: fix double free in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 27 Oct 2023 12:04:56 +0000 (15:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:59:38 +0000 (11:59 +0100)
commit85fd4eb8f6f85c82a0788cd3daa88cef2568c050
tree6f835b3bc7762ef8274a90df0c3ec16737eb2f8d
parentafadf1fad63bfd2880c4c148816af701a76b5596
fbdev: imsttfb: fix double free in probe()

[ Upstream commit e08c30efda21ef4c0ec084a3a9581c220b442ba9 ]

The init_imstt() function calls framebuffer_release() on error and then
the probe() function calls it again.  It should only be done in probe.

Fixes: 518ecb6a209f ("fbdev: imsttfb: Fix error path of imsttfb_probe()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/imsttfb.c