[ Upstream commit79a3908d1e] If 'mipid_detect()' fails, we must free 'md' to avoid a memory leak. Fixes:66d2f99d0b("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>