]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
authorZenghui Yu <yuzenghui@huawei.com>
Sun, 10 Feb 2019 05:24:10 +0000 (05:24 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 25 Mar 2019 15:45:16 +0000 (10:45 -0500)
BugLink: https://bugs.launchpad.net/bugs/1821607
commit 8d565748b6035eeda18895c213396a4c9fac6a4c upstream.

In current logic, its_parse_indirect_baser() will be invoked twice
when allocating Device tables. Add a *break* to omit the unnecessary
and annoying (might be ...) invoking.

Fixes: 32bd44dc19de ("irqchip/gic-v3-its: Fix the incorrect parsing of VCPU table size")
Cc: stable@vger.kernel.org
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/irqchip/irq-gic-v3-its.c

index c3aba3fc818d3c190166e07c8179dee5832b46bc..f867d41b0aa19ec2539e52e19fd4836919555426 100644 (file)
@@ -1955,6 +1955,8 @@ static int its_alloc_tables(struct its_node *its)
                        indirect = its_parse_indirect_baser(its, baser,
                                                            psz, &order,
                                                            its->device_ids);
+                       break;
+
                case GITS_BASER_TYPE_VCPU:
                        indirect = its_parse_indirect_baser(its, baser,
                                                            psz, &order,