]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 17 Aug 2025 15:22:05 +0000 (18:22 +0300)
commit8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb
tree0533c21b0038801931dea6052adb3c2a94c92738
parente5f48bfa2ae0806d5f51fb8061afc619a73599a7
drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local

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>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c