]> 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>
Thu, 17 Oct 2024 13:10:50 +0000 (15:10 +0200)
commit21d445fd2d6a4d5cdd3e20ce30cea4c2b0b8c5c0
tree6d9c689fa4a8be1165f63b43d6fed208cc907404
parent5f54a8669ff0f32476994edb8d1b4044c07ce0e8
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