projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1201a5a
)
drivers/perf: Initialise return value in armpmu_request_irqs()
author
Will Deacon
<will.deacon@arm.com>
Wed, 4 Jul 2018 10:50:50 +0000
(11:50 +0100)
committer
Will Deacon
<will.deacon@arm.com>
Wed, 4 Jul 2018 10:50:50 +0000
(11:50 +0100)
If a PMU doesn't have any IRQs, we should return 0 from
armpmu_request_irqs(), rather than uninitialised stack.
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu_platform.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_pmu_platform.c
b/drivers/perf/arm_pmu_platform.c
index
971ff33
..
96075ce
100644
(file)
--- a/
drivers/perf/arm_pmu_platform.c
+++ b/
drivers/perf/arm_pmu_platform.c
@@
-160,7
+160,7
@@
static int pmu_parse_irqs(struct arm_pmu *pmu)
static int armpmu_request_irqs(struct arm_pmu *armpmu)
{
struct pmu_hw_events __percpu *hw_events = armpmu->hw_events;
- int cpu, err;
+ int cpu, err
= 0
;
for_each_cpu(cpu, &armpmu->supported_cpus) {
int irq = per_cpu(hw_events->irq, cpu);