]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: hpfb: Fix an error handling path in hpfb_dio_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 1 Aug 2024 20:34:39 +0000 (22:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:06 +0000 (16:29 +0200)
commit9b97d6b08b7ffd9547329f5d290698a910c5913f
treed65e57f8ccc5560ac3b8e3d9672f3330277359f5
parent508a550eec10fe6689b71b0e35da78acac4be192
fbdev: hpfb: Fix an error handling path in hpfb_dio_probe()

[ Upstream commit aa578e897520f32ae12bec487f2474357d01ca9c ]

If an error occurs after request_mem_region(), a corresponding
release_mem_region() should be called, as already done in the remove
function.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
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/hpfb.c