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

Commit 9875f839 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: qcom: lpm-stats: Fix undefined access error"

parents 8810c3c2 8e82c0d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -694,9 +694,10 @@ static void cleanup_stats(struct lpm_stats *stats)
{
	struct list_head *centry = NULL;
	struct lpm_stats *pos = NULL;
	struct lpm_stats *n = NULL;

	centry = &stats->child;
	list_for_each_entry_reverse(pos, centry, sibling) {
	list_for_each_entry_safe_reverse(pos, n, centry, sibling) {
		if (!list_empty(&pos->child)) {
			cleanup_stats(pos);
			continue;