diff options
author | Will Deacon <will.deacon@arm.com> | 2015-05-01 17:15:23 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-05-12 16:50:21 +0100 |
commit | 4801ba338acad2e69e905e0c537e8ba2682c4e65 (patch) | |
tree | d2a036987dc6095caa7a884fc04804e52532a0e3 /drivers/iommu/amd_iommu_proto.h | |
parent | 1e4df6b7208140f3c49f316d33a409d3a161f350 (diff) |
arm64: perf: fix memory leak when probing PMU PPIs
Commit d795ef9aa831 ("arm64: perf: don't warn about missing
interrupt-affinity property for PPIs") added a check for PPIs so that
we avoid parsing the interrupt-affinity property for these naturally
affine interrupts.
Unfortunately, this check can trigger an early (successful) return and
we will leak the irqs array. This patch fixes the issue by reordering
the code so that the check is performed before any independent
allocation.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/amd_iommu_proto.h')
0 files changed, 0 insertions, 0 deletions