summaryrefslogtreecommitdiffstats
path: root/drivers/ssb/driver_gige.c
diff options
context:
space:
mode:
authorGuanrui Huang <guanrui.huang@linux.alibaba.com>2024-04-18 14:10:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-02 16:17:13 +0200
commitf5417ff561b8ac9a7e53c747b8627a7ab58378ae (patch)
tree6d29f3d3c25475c1eee7725ece0020d70077b977 /drivers/ssb/driver_gige.c
parent6d5692510d683ab57f81f82fd3d5282e33dd416f (diff)
downloadlinux-stable-f5417ff561b8ac9a7e53c747b8627a7ab58378ae.tar.gz
linux-stable-f5417ff561b8ac9a7e53c747b8627a7ab58378ae.tar.bz2
linux-stable-f5417ff561b8ac9a7e53c747b8627a7ab58378ae.zip
irqchip/gic-v3-its: Prevent double free on error
commit c26591afd33adce296c022e3480dea4282b7ef91 upstream. The error handling path in its_vpe_irq_domain_alloc() causes a double free when its_vpe_init() fails after successfully allocating at least one interrupt. This happens because its_vpe_irq_domain_free() frees the interrupts along with the area bitmap and the vprop_page and its_vpe_irq_domain_alloc() subsequently frees the area bitmap and the vprop_page again. Fix this by unconditionally invoking its_vpe_irq_domain_free() which handles all cases correctly and by removing the bitmap/vprop_page freeing from its_vpe_irq_domain_alloc(). [ tglx: Massaged change log ] Fixes: 7d75bbb4bc1a ("irqchip/gic-v3-its: Add VPE irq domain allocation/teardown") Signed-off-by: Guanrui Huang <guanrui.huang@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240418061053.96803-2-guanrui.huang@linux.alibaba.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ssb/driver_gige.c')
0 files changed, 0 insertions, 0 deletions