Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2bf9edd authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent e68fe943
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}