diff options
author | 2018-05-24 16:36:20 +0200 | |
---|---|---|
committer | 2018-05-24 18:39:24 +0100 | |
commit | 53f1aebfbe46ffe422138758c9d015502740f714 (patch) | |
tree | 3040e28809caafad52297e179797794b12dbb19c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: rcar: Pull bus clock enable/disable from rcar_pcie_get_resources() (diff) | |
download | linux-dev-53f1aebfbe46ffe422138758c9d015502740f714.tar.xz linux-dev-53f1aebfbe46ffe422138758c9d015502740f714.zip |
PCI: rcar: Add missing irq_dispose_mapping() into failpath
The rcar_pcie_get_resources() is another misnomer with a side effect.
The function does not only get resources, but also maps MSI IRQs via
irq_of_parse_and_map(). In case anything fails afterward, the IRQ
mapping must be disposed through irq_dispose_mapping() which is not
done.
This patch handles irq_of_parse_and_map() failures in by disposing
of the mapping in rcar_pcie_get_resources() as well as in probe.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-renesas-soc@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions