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)
committerHelge Deller <deller@gmx.de>
Mon, 5 Jun 2023 09:34:36 +0000 (11:34 +0200)
commit79a3908d1ea6c35157a6d907b1a9d8ec06015e7a
treee8cb972fd5c212cd2c9a933ca5db0d92b272f19e
parent9561de3a55bed6bdd44a12820ba81ec416e705a7
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()

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>
drivers/video/fbdev/omap/lcd_mipid.c