mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
drivers: soc: qcom: rimps_memlat: free attribute pointer
Attribute pointer used while creating the common and monitor pmu events, needs to be freed while returning from function. Change-Id: I7862e8ec81754102d2700cac03bb739c9bcdf32b Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
This commit is contained in:
parent
e68fe94391
commit
a2bf9edd8b
1 changed files with 2 additions and 0 deletions
|
|
@ -536,6 +536,7 @@ static int setup_common_pmu_events(struct memlat_cpu_grp *cpu_grp,
|
|||
pmu[STALL_IDX].hw_cntr_idx = INVALID_PMU_HW_IDX;
|
||||
}
|
||||
}
|
||||
kfree(attr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -604,6 +605,7 @@ static int setup_mon_pmu_events(struct memlat_mon *mon,
|
|||
pmu[L3_ACCESS_IDX].hw_cntr_idx = INVALID_PMU_HW_IDX;
|
||||
}
|
||||
}
|
||||
kfree(attr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue