drivers/perf: arm_pmu_acpi: Release memory obtained by kasprintf
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>
这个提交包含在:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户