]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe
authorZhang Shurong <zhang_shurong@foxmail.com>
Sat, 15 Jul 2023 08:16:56 +0000 (16:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:49 +0000 (11:33 +0200)
commit5cf4447039ef335768a6e61208ff2eebf1884f53
tree42ed50a1a8dfd35cafae4b0a4b2d7940224e3dbe
parent3922a99cfc196416590b0c0c3286511651e446c2
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe

[ Upstream commit 4e88761f5f8c7869f15a2046b1a1116f4fab4ac8 ]

This func misses checking for platform_get_irq()'s call and may passes the
negative error codes to request_irq(), which takes unsigned IRQ #,
causing it to fail with -EINVAL, overriding an original error code.

Fix this by stop calling request_irq() with invalid IRQ #s.

Fixes: 1630d85a8312 ("au1200fb: fix hardcoded IRQ")
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/au1200fb.c