summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorKaige Fu <kaige.fu@linux.alibaba.com>2021-09-15 10:20:55 +0800
committerMarc Zyngier <maz@kernel.org>2021-09-22 14:37:04 +0100
commit280bef512933b2dda01d681d8cbe499b98fc5bdd (patch)
treef9e620c59ee81b6494132271fc2700efed9d0dc4 /drivers/net/dsa/dsa_loop.c
parent969ac78db78c723a24e9410666b457cc1b0cb3c3 (diff)
irqchip/gic-v3-its: Fix potential VPE leak on error
In its_vpe_irq_domain_alloc, when its_vpe_init() returns an error, there is an off-by-one in the number of VPEs to be freed. Fix it by simply passing the number of VPEs allocated, which is the index of the loop iterating over the VPEs. Fixes: 7d75bbb4bc1a ("irqchip/gic-v3-its: Add VPE irq domain allocation/teardown") Signed-off-by: Kaige Fu <kaige.fu@linux.alibaba.com> [maz: fixed commit message] Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/d9e36dee512e63670287ed9eff884a5d8d6d27f2.1631672311.git.kaige.fu@linux.alibaba.com
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions