]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 4 Jun 2023 15:42:28 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:15 +0000 (08:37 +0200)
commit9e3858f82e3ced1e990ef7116c3a16c84e62093e
tree2e35580d471e4696a9f14ce0d176561952fdf544
parent5541d1856c8785f2f19a3dde6632253c08cec7b5
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()

[ Upstream commit 79a3908d1ea6c35157a6d907b1a9d8ec06015e7a ]

If 'mipid_detect()' fails, we must free 'md' to avoid a memory leak.

Fixes: 66d2f99d0bb5 ("omapfb: add support for MIPI-DCS compatible LCDs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/omap/lcd_mipid.c