]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local
authorBaihan Li <libaihan@huawei.com>
Wed, 13 Aug 2025 09:42:30 +0000 (17:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:46 +0000 (16:34 +0200)
commit06d261a085a11600f5b577bb56a65fb2c3e57d0a
treeff08d3fde014939918fc685f6e6340041e5a5cd3
parent2713953e93deb3c435af59e3de9aa40f150c2881
drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local

[ Upstream commit 8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb ]

The local variable is passed in request_irq (), and there will be use
after free problem, which will make request_irq failed. Using the global
irq name instead of it to fix.

Fixes: b11bc1ae4658 ("drm/hisilicon/hibmc: Add MSI irq getting and requesting for HPD")
Signed-off-by: Baihan Li <libaihan@huawei.com>
Signed-off-by: Yongbang Shi <shiyongbang@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250813094238.3722345-4-shiyongbang@huawei.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c