projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d6a7b9
)
drivers/perf: arm_pmu_acpi: Release memory obtained by kasprintf
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 20 Sep 2017 06:56:38 +0000
(12:26 +0530)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Fri, 22 Sep 2017 14:11:46 +0000
(15:11 +0100)
Free memory region, if arm_pmu_acpi_probe is not successful.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/perf/arm_pmu_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_pmu_acpi.c
b/drivers/perf/arm_pmu_acpi.c
index 0a9b78705ee810c9e18c6fa1f46551fc27374287..3303dd8d8eb5718f96de5326949ba89a60e9f32e 100644
(file)
--- a/
drivers/perf/arm_pmu_acpi.c
+++ b/
drivers/perf/arm_pmu_acpi.c
@@
-235,6
+235,7
@@
int arm_pmu_acpi_probe(armpmu_init_fn init_fn)
ret = armpmu_register(pmu);
if (ret) {
pr_warn("Failed to register PMU for CPU%d\n", cpu);
+ kfree(pmu->name);
return ret;
}
}