[PATCH v2 3/3] irqchip/gic-v5: Fix error handling in gicv5_its_irq_domain_alloc()
Zenghui Yu
yuzenghui at huawei.com
Sun Aug 24 20:54:56 PDT 2025
On 2025/7/18 2:45, Dan Carpenter wrote:
> There are two issues to fix in this code:
> 1) If gicv5_alloc_lpi() fails the original code was checking the wrong
> variable. Fix the mixup between "ret" and "lpi".
> 2) Clean up from all the previous iterations and not just the current
> iteration.
>
> Fixes: 57d72196dfc8 ("irqchip/gic-v5: Add GICv5 ITS support")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> ---
> v2: In v1 I had the wrong goto if gicv5_alloc_lpi() failed. Also change
> the label name from out_free_lpi to out_free_irqs.
>
> drivers/irqchip/irq-gic-v5-its.c | 20 ++++++++++++++------
> 1 file changed, 14 insertions(+), 6 deletions(-)
Reviewed-by: Zenghui Yu <yuzenghui at huawei.com>
More information about the linux-arm-kernel
mailing list